2022-09-05 16:15:17 +00:00
|
|
|
name: Release CI
|
|
|
|
|
|
|
|
on:
|
2022-09-29 18:16:31 +00:00
|
|
|
workflow_dispatch:
|
2022-09-05 16:15:17 +00:00
|
|
|
branches: [ "master" ]
|
|
|
|
|
|
|
|
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
|
2022-09-06 18:19:27 +00:00
|
|
|
- name: Publish
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
run: .ci/deploy.sh lnx
|
2022-09-08 21:05:10 +00:00
|
|
|
- name: Upload
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2022-09-10 09:29:25 +00:00
|
|
|
name: qb64_${{ github.ref_name }}_${{ github.sha }}_lnx
|
2022-09-08 23:20:45 +00:00
|
|
|
path: /home/runner/work/qb64/qb64_*.tar.gz
|
2022-09-05 16:15:17 +00:00
|
|
|
|
2022-09-08 23:26:59 +00:00
|
|
|
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
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
run: .ci/deploy.sh osx
|
|
|
|
- name: Upload
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2022-09-10 09:29:25 +00:00
|
|
|
name: qb64_${{ github.ref_name }}_${{ github.sha }}_osx
|
2022-09-08 23:35:53 +00:00
|
|
|
path: /Users/runner/work/qb64/qb64_*.tar.gz
|
2022-09-05 16:15:17 +00:00
|
|
|
|
2022-09-08 23:26:59 +00:00
|
|
|
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
|
2022-09-10 09:29:25 +00:00
|
|
|
run: .ci/bootstrap32.bat
|
2022-09-08 23:26:59 +00:00
|
|
|
- name: Compile
|
|
|
|
run: .ci/compile.bat
|
|
|
|
- name: Publish
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
run: .ci/deploy.ps1
|
|
|
|
- name: Upload
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
if: always()
|
|
|
|
with:
|
2022-09-10 09:29:25 +00:00
|
|
|
name: qb64_${{ github.ref_name }}_${{ github.sha }}_win-x86
|
2022-09-08 23:35:53 +00:00
|
|
|
path: D:\a\qb64\qb64_*.7z
|
|
|
|
|
2022-09-08 23:26:59 +00:00
|
|
|
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
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
run: .ci/deploy.ps1
|
|
|
|
- name: Upload
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2022-09-10 09:29:25 +00:00
|
|
|
name: qb64_${{ github.ref_name }}_${{ github.sha }}_win-x64
|
2022-09-08 23:35:53 +00:00
|
|
|
path: D:\a\qb64\qb64_*.7z
|
2022-09-10 09:29:25 +00:00
|
|
|
|
|
|
|
# ${{ github.event.repository.updated_at }}
|
|
|
|
# path: ${{ github.workspace }}\qb64_*.7z
|