🔄 Switch Builds #52
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: 🔄 Switch Builds | |
on: [push, pull_request] | |
# Global Cache Settings | |
env: | |
GODOT_BASE_BRANCH: 3.2 | |
SCONS_CACHE_LIMIT: 4096 | |
jobs: | |
switch-template: | |
runs-on: "ubuntu-latest" | |
container: devkitpro/devkita64 | |
name: Template (target=release, tools=no) | |
steps: | |
- uses: actions/checkout@v2 | |
# Upload cache on completion and check it out now | |
- name: Load .scons_cache directory | |
id: switch-template-cache | |
uses: actions/cache@v2 | |
with: | |
path: ${{github.workspace}}/.scons_cache/ | |
key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} | |
restore-keys: | | |
${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} | |
${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}} | |
${{github.job}}-${{env.GODOT_BASE_BRANCH}} | |
- name: Install scons from pip | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install python3-pip | |
sudo python3 -m pip install scons | |
- name: Compilation | |
env: | |
SCONS_CACHE: ${{github.workspace}}/.scons_cache/ | |
run: | | |
scons -j2 verbose=yes warnings=all werror=no platform=switch target=release tools=no | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ github.job }} | |
path: bin/* | |
retention-days: 14 |