From 143e02b8250c7b9c7e260310a3048c74f8f7e115 Mon Sep 17 00:00:00 2001 From: Nguyen Truong An <79207918+flashshare@users.noreply.github.com> Date: Tue, 25 Feb 2025 12:30:51 +0100 Subject: [PATCH] Create switch_builds.yml --- .github/workflows/switch_builds.yml | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/switch_builds.yml diff --git a/.github/workflows/switch_builds.yml b/.github/workflows/switch_builds.yml new file mode 100644 index 000000000..4000c8f4e --- /dev/null +++ b/.github/workflows/switch_builds.yml @@ -0,0 +1,44 @@ +name: 🎮 Switch Builds +on: [push, pull_request] + +# Global Settings +env: + GODOT_BASE_BRANCH: 3.x + SCONSFLAGS: verbose=no warnings=no werror=no debug_symbols=no use_rtti=True disable_gles3=False + +concurrency: + group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-switch + cancel-in-progress: true + +jobs: + switch-template: + runs-on: ubuntu-latest + container: devkitpro/devkita64 + name: Template (target=release, tools=no) + + steps: + - uses: actions/checkout@v4 + + - name: Restore Godot build cache + uses: ./.github/actions/godot-cache-restore + continue-on-error: true + + - name: Setup python and scons + uses: ./.github/actions/godot-deps + + - name: Compilation + uses: ./.github/actions/godot-build + with: + sconsflags: ${{ env.SCONSFLAGS }} + platform: switch + target: release + tools: false + + - name: Save Godot build cache + uses: ./.github/actions/godot-cache-save + with: + cache-name: ${{ matrix.cache-name }} + continue-on-error: true + + - name: Upload artifact + uses: ./.github/actions/upload-artifact