GH-811 Correctly initialize promoted variables #1460
Workflow file for this run
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: 🛠️ Build All | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref_name }}" | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- identifier: linux-release | |
name: 🐧 Linux | |
build_type: Release | |
runner: ubuntu-20.04 | |
target: template_release | |
platform: linux | |
arch: x86_64 | |
- identifier: windows-release | |
name: 🪟 Windows | |
build_type: Release | |
runner: windows-latest | |
target: template_release | |
platform: windows | |
arch: x86_64 | |
- identifier: macos-release | |
name: 🍎 MacOS | |
build_type: Release | |
runner: macos-latest | |
target: template_release | |
platform: macos | |
- identifier: android-arm64 | |
name: 🤖 Android (arm64) | |
build_type: Release | |
runner: ubuntu-20.04 | |
platform: arm64-v8a | |
arch: arm64-v8a | |
- identifier: android-arm32 | |
name: 🤖 Android (arm32) | |
build_type: Release | |
runner: ubuntu-20.04 | |
platform: armeabi-v7a | |
arch: armeabi-v7a | |
runs-on: ${{ matrix.runner }} | |
name: ${{ matrix.name }} | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Linux Dependencies | |
if: startsWith(matrix.identifier, 'linux-') | |
uses: ./.github/actions/linux-deps | |
- name: Setup Windows Dependencies | |
if: startsWith(matrix.identifier, 'windows-') | |
uses: ./.github/actions/windows-deps | |
- name: Setup MacOS Dependencies | |
if: startsWith(matrix.identifier, 'macos-') | |
uses: ./.github/actions/macos-deps | |
- name: Setup Android Dependencies | |
if: startsWith(matrix.identifier, 'android-') | |
uses: ./.github/actions/android-deps | |
- name: Setup Base Dependencies | |
uses: ./.github/actions/base-deps | |
- name: Install ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
key: ccache-${{ matrix.identifier }} | |
- name: Generate Build Files (${{ matrix.identifier }}) | |
shell: sh | |
run: | | |
cmake -B '${{ github.workspace }}/.out-${{ matrix.identifier }}' --preset ${{ matrix.platform }} -S '${{ github.workspace }}' | |
- name: Build Orchestrator (${{ matrix.identifier }}) | |
shell: sh | |
run: | | |
cmake --build '${{ github.workspace }}/.out-${{ matrix.identifier }}' --target orchestrator -j 18 | |
- name: Prepare addon files | |
shell: bash | |
run: | | |
cp '${{ github.workspace }}/AUTHORS.md' '${{ github.workspace }}/project/addons/orchestrator/' | |
cp '${{ github.workspace }}/CHANGELOG.md' '${{ github.workspace }}/project/addons/orchestrator/' | |
cp '${{ github.workspace }}/README.md' '${{ github.workspace }}/project/addons/orchestrator/' | |
cp '${{ github.workspace }}/LICENSE' '${{ github.workspace }}/project/addons/orchestrator/' | |
- name: Upload artifact (Demo) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ github.event.repository.name }}-demo-${{ matrix.identifier }} | |
retention-days: 1 | |
path: | | |
${{ github.workspace }}/project/ | |
- name: Upload artifact (Plugin) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ github.event.repository.name }}-plugin-${{ matrix.identifier }} | |
retention-days: 1 | |
path: | | |
${{ github.workspace }}/project | |
!${{ github.workspace }}/project/addons/orchestrator/*debug* | |
!${{ github.workspace }}/project/scenes | |
!${{ github.workspace }}/project/icon.svg | |
!${{ github.workspace }}/project/project.godot | |
publish: | |
needs: build | |
runs-on: ubuntu-latest | |
name: Combine Artifacts | |
steps: | |
- name: Download Plugin Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
pattern: ${{ github.event.repository.name }}-plugin-* | |
merge-multiple: true | |
- name: Upload Plugin Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ github.event.repository.name }}-plugin | |
retention-days: 7 | |
path: | | |
${{ github.workspace }} | |
- name: Delete Incremental Plugin Artifacts | |
uses: geekyeggo/delete-artifact@v5 | |
with: | |
name: | | |
godot-orchestrator-plugin-* |