mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-28 11:17:47 +00:00
94 lines
3 KiB
YAML
94 lines
3 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- development
|
|
|
|
jobs:
|
|
linux-build:
|
|
runs-on: ubuntu-latest
|
|
if: "!contains(github.event.head_commit.message, 'ci-skip')"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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
|
|
- name: Publish to S3
|
|
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
|
|
AWS_REGION: us-east-2
|
|
S3_ENDPOINT: https://nyc3.digitaloceanspaces.com
|
|
|
|
macos-build:
|
|
runs-on: macos-latest
|
|
if: "!contains(github.event.head_commit.message, 'ci-skip')"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Bootstrap compiler
|
|
run: .ci/bootstrap.sh osx
|
|
- name: Compile
|
|
run: .ci/compile.sh
|
|
- name: Publish to S3
|
|
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 }}
|
|
AWS_REGION: us-east-2
|
|
S3_ENDPOINT: https://nyc3.digitaloceanspaces.com
|
|
|
|
windows-x86-build:
|
|
runs-on: windows-latest
|
|
if: "!contains(github.event.head_commit.message, 'ci-skip')"
|
|
env:
|
|
PLATFORM: x86
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Bootstrap compiler
|
|
run: .ci/bootstrap.bat
|
|
- name: Compile
|
|
run: .ci/compile.bat
|
|
- name: Publish to S3
|
|
if: github.event_name == 'push'
|
|
run: .ci/deploy.ps1
|
|
env:
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
AWS_REGION: us-east-2
|
|
S3_ENDPOINT: https://nyc3.digitaloceanspaces.com
|
|
|
|
windows-x64-build:
|
|
runs-on: windows-latest
|
|
if: "!contains(github.event.head_commit.message, 'ci-skip')"
|
|
env:
|
|
PLATFORM: x64
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Bootstrap compiler
|
|
run: .ci/bootstrap.bat
|
|
- name: Compile
|
|
run: .ci/compile.bat
|
|
- name: Publish to S3
|
|
if: github.event_name == 'push'
|
|
run: .ci/deploy.ps1
|
|
env:
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
AWS_REGION: us-east-2
|
|
S3_ENDPOINT: https://nyc3.digitaloceanspaces.com
|