This repository was archived by the owner on Dec 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
110 lines (95 loc) · 3.78 KB
/
ios-build.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: 🍎 IOS
on:
workflow_call:
inputs:
fullbuild:
description: "Weather or not to build all targets"
required: true
type: boolean
default: false
godot_version:
description: "Version of godot to be used"
required: true
type: string
env:
BASE_BRANCH: main
SCONSFLAGS: "production=yes extra_suffix=luaAPI"
SCONS_CACHE_LIMIT: 7168
GODOT_VERSION: ${{ inputs.godot_version }}-stable
jobs:
ios-builds:
runs-on: "macos-latest"
name: ${{ matrix.opts.name }}
strategy:
fail-fast: false
matrix:
opts:
- name: IOS Template (target=template_debug,arch=arm64)
cache-name: ios-template-debug-arm
artifact-name: ios-templates
build-options: "arch=arm64 target=template_debug"
should-run: true
- name: IOS Template (target=template_release,arch=arm64)
cache-name: ios-template-release-arm64
artifact-name: ios-templates
build-options: "arch=arm64 target=template_release"
should-run: ${{ inputs.fullbuild }}
- name: IOS Simulator Template (target=template_debug,arch=x86_64)
cache-name: ios-simulator-template-debug-x86
artifact-name: ios-templates
build-options: "arch=x86_64 target=template_debug ios_simulator=yes"
should-run: ${{ inputs.fullbuild }}
- name: IOS Simulator Template (target=template_release,arch=x86_64)
cache-name: ios-simulator-template-release-x86
artifact-name: ios-templates
build-options: "arch=x86_64 target=template_release ios_simulator=yes"
should-run: ${{ inputs.fullbuild }}
- name: IOS Simulator Template (target=template_debug,arch=arm64)
cache-name: ios-simulator-template-debug-arm64
artifact-name: ios-templates
build-options: "arch=arm64 target=template_debug ios_simulator=yes"
should-run: ${{ inputs.fullbuild }}
- name: IOS Simulator Template (target=template_release,arch=arm64)
cache-name: ios-simulator-template-release-arm64
artifact-name: ios-templates
build-options: "arch=arm64 target=template_release ios_simulator=yes"
should-run: ${{ inputs.fullbuild }}
exclude:
- {opts: {should-run: false}}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Vulkan SDK
run: |
sh scripts/install_vulkan_sdk_macos.sh
- name: Load .scons_cache directory
uses: actions/cache@v2
with:
path: ${{github.workspace}}/.scons_cache/
key: ${{matrix.opts.cache-name}}-${{env.BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
restore-keys: |
${{matrix.opts.cache-name}}-${{env.BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
${{matrix.opts.cache-name}}-${{env.BASE_BRANCH}}-${{github.ref}}
${{matrix.opts.cache-name}}-${{env.BASE_BRANCH}}
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: "3.x"
architecture: "x64"
- name: Configuring Python packages
run: |
python -c "import sys; print(sys.version)"
python -m pip install scons
python --version
scons --version
- name: Compilation
working-directory: ./scripts
env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
run: |
scons platform=ios ${{ matrix.opts.build-options }} ${{ env.SCONSFLAGS }}
- uses: actions/upload-artifact@v2
with:
name: ${{matrix.opts.artifact-name}}
path: scripts/godot/bin/*