forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (53 loc) · 1.58 KB
/
ios_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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: 🍏 iOS Builds
on:
workflow_call:
# Global Settings
env:
# Used for the cache key. Add version suffix to force clean build.
GODOT_BASE_BRANCH: master
SCONSFLAGS: verbose=yes warnings=extra werror=yes debug_symbols=no strict_checks=yes
jobs:
build-ios:
runs-on: macos-latest
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: Pixel Debug
cache-name: ios_pixel_engine_debug
target: pixel_debug
cache-limit: 2
- name: Pixel Release
cache-name: ios_pixel_engine_release
target: pixel_release
cache-limit: 2
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Restore Godot build cache
uses: ./.github/actions/godot-cache-restore
with:
cache-name: ${{ matrix.cache-name }}
continue-on-error: true
- name: Setup Python and SCons
uses: ./.github/actions/godot-deps
- name: Compilation (arm64)
uses: ./.github/actions/godot-build
with:
sconsflags: ${{ env.SCONSFLAGS }}
platform: ios
target: ${{ matrix.target }}
tests: false
scons-cache-limit: 1
- 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
with:
name: ${{ matrix.cache-name }}