CI: Actually create scons cache #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Built Unstable (main branch) | |
on: | |
push: | |
branches: | |
- 'main' | |
# Make sure jobs cannot overlap. | |
concurrency: | |
group: build-unstable-main | |
cancel-in-progress: true | |
jobs: | |
build-linux: | |
name: Compile and publish Linux version | |
runs-on: ubuntu-latest | |
env: | |
SCONS_PLATFORM: linux | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up build cache | |
uses: ./.github/actions/setup-cache | |
continue-on-error: true | |
- name: Install build dependencies | |
uses: ./.github/actions/install-deps | |
- name: Setup GCC problem matcher | |
uses: ammaraskar/gcc-problem-matcher@master | |
- name: Build GDSiON (release) | |
uses: ./.github/actions/build-extension | |
with: | |
target: template_release | |
- name: Build GDSiON (debug) | |
uses: ./.github/actions/build-extension | |
with: | |
target: template_debug | |
- name: Upload release | |
uses: ./.github/actions/upload-extension | |
- name: Publish release | |
uses: ./.github/actions/publish-extension | |
build-macos: | |
name: Compile and publish macOS version | |
runs-on: macos-latest | |
env: | |
SCONS_PLATFORM: macos | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up build cache | |
uses: ./.github/actions/setup-cache | |
continue-on-error: true | |
- name: Install build dependencies | |
uses: ./.github/actions/install-deps | |
- name: Build GDSiON (release) | |
uses: ./.github/actions/build-extension | |
with: | |
target: template_release | |
- name: Build GDSiON (debug) | |
uses: ./.github/actions/build-extension | |
with: | |
target: template_debug | |
- name: Upload release | |
uses: ./.github/actions/upload-extension | |
- name: Publish release | |
uses: ./.github/actions/publish-extension | |
build-windows: | |
name: Compile and publish Windows version | |
runs-on: windows-latest | |
env: | |
SCONS_PLATFORM: windows | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up build cache | |
uses: ./.github/actions/setup-cache | |
continue-on-error: true | |
- name: Install build dependencies | |
uses: ./.github/actions/install-deps | |
- name: Setup MSVC problem matcher | |
uses: ammaraskar/msvc-problem-matcher@master | |
- name: Build GDSiON (release) | |
uses: ./.github/actions/build-extension | |
with: | |
target: template_release | |
- name: Build GDSiON (debug) | |
uses: ./.github/actions/build-extension | |
with: | |
target: template_debug | |
- name: Upload release | |
uses: ./.github/actions/upload-extension | |
- name: Publish release | |
uses: ./.github/actions/publish-extension | |
build-web: | |
name: Compile and publish Web version | |
runs-on: ubuntu-latest | |
env: | |
SCONS_PLATFORM: web | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up build cache | |
uses: ./.github/actions/setup-cache | |
continue-on-error: true | |
- name: Install build dependencies | |
uses: ./.github/actions/install-deps | |
- name: Build GDSiON (release) | |
uses: ./.github/actions/build-extension | |
with: | |
target: template_release | |
- name: Build GDSiON (debug) | |
uses: ./.github/actions/build-extension | |
with: | |
target: template_debug | |
- name: Upload release | |
uses: ./.github/actions/upload-extension | |
- name: Publish release | |
uses: ./.github/actions/publish-extension |