1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-08 17:15:13 +00:00
qb64/.github/backup_workflows/run.yml

95 lines
3 KiB
YAML
Raw Normal View History

2020-01-03 11:44:16 +00:00
on:
push:
branches:
2020-01-06 07:47:40 +00:00
- development
2020-01-03 11:44:16 +00:00
jobs:
linux-build:
runs-on: ubuntu-latest
2021-02-02 12:00:43 +00:00
if: "!contains(github.event.head_commit.message, 'ci-skip')"
2020-01-03 11:44:16 +00:00
steps:
2020-01-03 11:48:11 +00:00
- uses: actions/checkout@v2
2021-01-30 00:24:31 +00:00
- name: Install dependencies
run: sudo apt update && sudo apt install libglu1-mesa-dev libncurses-dev
- name: Bootstrap compiler
run: .ci/bootstrap.sh lnx
- name: Compile
run: .ci/compile.sh
- name: Update source
if: github.event_name == 'push'
run: .ci/update-source.sh
- name: Push to repository
if: github.event_name == 'push'
uses: ad-m/github-push-action@19caa5c351f47734055690f7d01aaaef2f9114d5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: development
2021-02-01 09:47:45 +00:00
- name: Publish to S3
2020-01-06 07:40:15 +00:00
if: github.event_name == 'push'
run: .ci/deploy.sh lnx
env:
# We are using Digital Ocean Spaces but they are API compatible with S3
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_REGION is useless but aws-cli gives errors if its not set
2021-12-11 12:59:03 +00:00
AWS_REGION: us-east-2
S3_ENDPOINT: https://nyc3.digitaloceanspaces.com
2020-01-06 07:47:40 +00:00
macos-build:
runs-on: macos-latest
2021-02-02 12:00:43 +00:00
if: "!contains(github.event.head_commit.message, 'ci-skip')"
2020-01-06 07:47:40 +00:00
steps:
- uses: actions/checkout@v2
- name: Bootstrap compiler
run: .ci/bootstrap.sh osx
2020-01-06 07:47:40 +00:00
- name: Compile
run: .ci/compile.sh
2021-02-01 09:58:41 +00:00
- name: Publish to S3
2020-01-06 07:47:40 +00:00
if: github.event_name == 'push'
run: .ci/deploy.sh osx
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2021-12-11 12:59:03 +00:00
AWS_REGION: us-east-2
S3_ENDPOINT: https://nyc3.digitaloceanspaces.com
2020-01-06 07:47:40 +00:00
2020-01-08 08:35:38 +00:00
windows-x86-build:
runs-on: windows-latest
2021-02-01 10:11:02 +00:00
if: "!contains(github.event.head_commit.message, 'ci-skip')"
2020-01-08 08:35:38 +00:00
env:
PLATFORM: x86
steps:
- uses: actions/checkout@v2
- name: Bootstrap compiler
run: .ci/bootstrap.bat
- name: Compile
run: .ci/compile.bat
2021-02-01 10:11:02 +00:00
- name: Publish to S3
2020-01-08 09:33:09 +00:00
if: github.event_name == 'push'
2021-02-02 11:39:11 +00:00
run: .ci/deploy.ps1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2021-12-11 12:59:03 +00:00
AWS_REGION: us-east-2
S3_ENDPOINT: https://nyc3.digitaloceanspaces.com
2020-01-08 09:33:09 +00:00
2020-01-08 10:55:08 +00:00
windows-x64-build:
runs-on: windows-latest
2021-02-02 12:00:43 +00:00
if: "!contains(github.event.head_commit.message, 'ci-skip')"
2020-01-08 10:55:08 +00:00
env:
PLATFORM: x64
steps:
- uses: actions/checkout@v2
2021-02-02 10:02:55 +00:00
- name: Bootstrap compiler
run: .ci/bootstrap.bat
- name: Compile
run: .ci/compile.bat
- name: Publish to S3
2020-01-08 10:55:08 +00:00
if: github.event_name == 'push'
2021-02-02 12:00:43 +00:00
run: .ci/deploy.ps1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2021-12-11 12:59:03 +00:00
AWS_REGION: us-east-2
S3_ENDPOINT: https://nyc3.digitaloceanspaces.com