Skip to content

Commit 03bdd6d

Browse files
committed
fixup: workflow for ios ffi
1 parent e5d573b commit 03bdd6d

File tree

2 files changed

+57
-20
lines changed

2 files changed

+57
-20
lines changed

.github/workflows/daemon.yml

-20
Original file line numberDiff line numberDiff line change
@@ -175,23 +175,3 @@ jobs:
175175
# doesn't run out of space on the D drive.
176176
CARGO_TARGET_DIR: "C:/cargo-target"
177177
run: ./ci/check-rust.sh
178-
179-
build-ios-ffi:
180-
runs-on: macos-latest
181-
strategy:
182-
matrix:
183-
target: [aarch64-apple-ios, aarch64-apple-ios-sim]
184-
steps:
185-
- name: Checkout repository
186-
uses: actions/checkout@v2
187-
188-
- name: Install Rust
189-
uses: actions-rs/toolchain@v1.0.6
190-
with:
191-
toolchain: stable
192-
target: ${{ matrix.target }}
193-
194-
- name: Build and test crates
195-
run: |
196-
source env.sh
197-
cargo build --locked --verbose --lib -p mullvad-ios

.github/workflows/ios-rust-ffi.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
name: iOS - compile Rust FFI
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/clippy.yml
7+
- clippy.toml
8+
- '**/*.rs'
9+
workflow_dispatch:
10+
jobs:
11+
build-ios:
12+
runs-on: macos-latest
13+
strategy:
14+
matrix:
15+
target: [aarch64-apple-ios, aarch64-apple-ios-sim]
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v2
19+
20+
- name: Install Rust
21+
uses: actions-rs/toolchain@v1.0.6
22+
with:
23+
toolchain: stable
24+
target: ${{ matrix.target }}
25+
26+
- name: Build and test crates
27+
shell: bash
28+
env:
29+
RUSTFLAGS: --deny warnings
30+
run: |
31+
source env.sh
32+
time cargo build --locked --verbose --lib -p mullvad-ios
33+
time cargo test --locked --verbose --lib -p mullvad-ios
34+
35+
clippy-check-ios:
36+
runs-on: macos-latest
37+
strategy:
38+
matrix:
39+
target: [aarch64-apple-ios, aarch64-apple-ios-sim]
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v2
43+
44+
- name: Install Rust
45+
uses: actions-rs/toolchain@v1.0.6
46+
with:
47+
toolchain: stable
48+
target: ${{ matrix.target }}
49+
50+
- name: Clippy check
51+
shell: bash
52+
env:
53+
RUSTFLAGS: --deny warnings
54+
run: |
55+
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

0 commit comments

Comments
 (0)