Debian Codegraph @

.github/workflows/ios.yml

raw
1 name: iOS
2 permissions:
3 contents: read
4
5 on:
6 workflow_run:
7 # iOS is 10x expensive to run on GitHub machines, so only run if we know something else passed
8 workflows: ["Wasm Build"]
9 types:
10 - completed
11
12 jobs:
13 build:
14 runs-on: macos-latest
15 if: ${{ github.event.workflow_run.conclusion == 'success' }}
16 steps:
17 - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
18 - uses: lukka/get-cmake@9e07ecdcee1b12e5037e42f410b67f03e2f626e1 # v4.02
19 - name: Download dependencies
20 run: python3 utils/git-sync-deps
21 # NOTE: The MacOS SDK ships universal binaries. CI should reflect this.
22 - name: Configure Universal Binary for iOS
23 run: |
24 cmake -S . -B build \
25 -D CMAKE_BUILD_TYPE=Debug \
26 -D CMAKE_SYSTEM_NAME=iOS \
27 "-D CMAKE_OSX_ARCHITECTURES=arm64;x86_64" \
28 -G Ninja
29 env:
30 # Linker warnings as errors
31 LDFLAGS: -Wl,-fatal_warnings
32 - run: cmake --build build
33 - run: cmake --install build --prefix /tmp