@@ -3,7 +3,7 @@ name: iOS - Build and test Rust FFI (mullvad-ios)
3
3
on :
4
4
pull_request :
5
5
paths :
6
- - .github/workflows/clippy .yml
6
+ - .github/workflows/ios-rust-ffi .yml
7
7
- clippy.toml
8
8
- ' **/*.rs'
9
9
workflow_dispatch :
@@ -17,19 +17,27 @@ jobs:
17
17
- name : Checkout repository
18
18
uses : actions/checkout@v2
19
19
20
+ - name : Install Protoc
21
+ uses : arduino/setup-protoc@v3
22
+ with :
23
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
24
+
20
25
- name : Install Rust
21
26
uses : actions-rs/toolchain@v1.0.6
22
27
with :
23
28
toolchain : stable
24
29
target : ${{ matrix.target }}
30
+ default : true
25
31
26
32
- name : Build and test crates
27
33
shell : bash
28
34
env :
29
35
RUSTFLAGS : --deny warnings
36
+ # NOTE: Tests actually target macOS here. This is because we do not have an iOS runner
37
+ # handy.
30
38
run : |
31
39
source env.sh
32
- time cargo build --locked --verbose --lib -p mullvad-ios
40
+ time cargo build --locked --verbose --lib -p mullvad-ios --target ${{ matrix.target }}
33
41
time cargo test --locked --verbose --lib -p mullvad-ios
34
42
35
43
clippy-check-ios :
@@ -41,17 +49,23 @@ jobs:
41
49
- name : Checkout repository
42
50
uses : actions/checkout@v2
43
51
52
+ - name : Install Protoc
53
+ uses : arduino/setup-protoc@v3
54
+ with :
55
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
56
+
44
57
- name : Install Rust
45
58
uses : actions-rs/toolchain@v1.0.6
46
59
with :
47
60
toolchain : stable
48
61
target : ${{ matrix.target }}
62
+ default : true
49
63
50
64
- name : Clippy check
51
65
shell : bash
52
66
env :
53
67
RUSTFLAGS : --deny warnings
54
68
run : |
55
69
source env.sh
56
- time cargo clippy --locked --all-targets --no-default-features -p mullvad-ios
57
- time cargo clippy --locked --all-targets --all-features -p mullvad-ios
70
+ time cargo clippy --locked --all-targets --no-default-features -p mullvad-ios --target ${{ matrix.target }}
71
+ time cargo clippy --locked --all-targets --all-features -p mullvad-ios --target ${{ matrix.target }}
0 commit comments