Skip to content

Commit

Permalink
fixup: workflow for ios ffi
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Aug 16, 2024
1 parent e5d573b commit 03bdd6d
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/daemon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,23 +175,3 @@ jobs:
# doesn't run out of space on the D drive.
CARGO_TARGET_DIR: "C:/cargo-target"
run: ./ci/check-rust.sh

build-ios-ffi:
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/[email protected]
with:
toolchain: stable
target: ${{ matrix.target }}

- name: Build and test crates
run: |
source env.sh
cargo build --locked --verbose --lib -p mullvad-ios
57 changes: 57 additions & 0 deletions .github/workflows/ios-rust-ffi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
name: iOS - compile Rust FFI
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/[email protected]
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/[email protected]
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

0 comments on commit 03bdd6d

Please sign in to comment.