Create switch_builds.yml

This commit is contained in:
Nguyen Truong An 2025-02-25 12:30:51 +01:00 committed by GitHub
parent e0a87c0255
commit 143e02b825
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

44
.github/workflows/switch_builds.yml vendored Normal file
View File

@ -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