-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (49 loc) · 1.51 KB
/
build-ios.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
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}-build-ios"
cancel-in-progress: true
on:
workflow_call:
env:
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: true
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
jobs:
build-ios:
if: github.repository == 'wireapp/core-crypto'
runs-on: self-hosted
strategy:
matrix:
include:
- task: ios-device
target: aarch64-apple-ios
- task: ios-simulator-x86
target: x86_64-apple-ios
- task: ios-simulator-arm
target: aarch64-apple-ios-sim
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: ${{ matrix.target }}
- name: setup cargo-make
uses: davidB/rust-cargo-make@v1
- name: build ${{ matrix.task }}
run: |
cd crypto-ffi
cargo make ${{ matrix.task }}
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{github.event.number}}-${{ matrix.task }}
path: target
retention-days: 1
overwrite: 'true'
# Only needs to be uploaded once, this step finishes fastest.
- name: upload ffi artifact
if: startsWith(matrix.task, 'ios-simulator-arm')
uses: actions/upload-artifact@v4
with:
name: ${{github.event.number}}-swift-ffi
path: crypto-ffi/bindings/swift/WireCoreCrypto
retention-days: 1
overwrite: 'true'