forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (40 loc) · 1.36 KB
/
switch_builds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: 🔄 Switch Builds
on:
workflow_call:
# Global Cache Settings
env:
GODOT_BASE_BRANCH: 3.5
SCONS_CACHE_LIMIT: 4096
jobs:
switch-template:
runs-on: ubuntu-latest
container: devkitpro/devkita64
name: Template (target=release, tools=no)
steps:
- uses: actions/checkout@v3
# 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