diff options
| author | David Lönnhager <david.l@mullvad.net> | 2024-08-16 14:20:53 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2024-08-16 15:06:01 +0200 |
| commit | c147dbb5c85fdd2911b40e983e92a1593cf66e1e (patch) | |
| tree | 1ce458ae861f4c1200adba8bd0e9ebf3aa549973 /.github | |
| parent | 3217d0d8b649dfe67907d1aa6d7c8087b80f3b73 (diff) | |
| download | mullvadvpn-c147dbb5c85fdd2911b40e983e92a1593cf66e1e.tar.xz mullvadvpn-c147dbb5c85fdd2911b40e983e92a1593cf66e1e.zip | |
Add CI job for mullvad-ios
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ios-rust-ffi.yml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/.github/workflows/ios-rust-ffi.yml b/.github/workflows/ios-rust-ffi.yml new file mode 100644 index 0000000000..cc41fea3a5 --- /dev/null +++ b/.github/workflows/ios-rust-ffi.yml @@ -0,0 +1,57 @@ +--- +name: iOS - Build and test Rust FFI (mullvad-ios) +on: + pull_request: + paths: + - .github/workflows/clippy.yml + - clippy.toml + - '**/*.rs' + workflow_dispatch: +jobs: + build-ios: + runs-on: macos-latest + strategy: + matrix: + target: [aarch64-apple-ios, aarch64-apple-ios-sim] + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install Rust + uses: actions-rs/toolchain@v1.0.6 + with: + toolchain: stable + target: ${{ matrix.target }} + + - name: Build and test crates + shell: bash + env: + RUSTFLAGS: --deny warnings + run: | + source env.sh + time cargo build --locked --verbose --lib -p mullvad-ios + time cargo test --locked --verbose --lib -p mullvad-ios + + clippy-check-ios: + runs-on: macos-latest + strategy: + matrix: + target: [aarch64-apple-ios, aarch64-apple-ios-sim] + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install Rust + uses: actions-rs/toolchain@v1.0.6 + with: + toolchain: stable + target: ${{ matrix.target }} + + - name: Clippy check + shell: bash + env: + RUSTFLAGS: --deny warnings + run: | + source env.sh + time cargo clippy --locked --all-targets --no-default-features -p mullvad-ios + time cargo clippy --locked --all-targets --all-features -p mullvad-ios |
