Add iOS to CI

This commit is contained in:
Jonathan Kelley 2023-06-20 12:06:30 -04:00
parent d93d11262d
commit 6e246cc663
1 changed files with 39 additions and 0 deletions

39
.github/workflows/ios.yml vendored Normal file
View File

@ -0,0 +1,39 @@
name: macOS tests
on:
push:
branches:
- master
paths:
- packages/**
- examples/**
- src/**
- .github/**
- lib.rs
- Cargo.toml
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- master
paths:
- packages/desktop/**
- examples/**
- src/**
- .github/**
- lib.rs
- Cargo.toml
jobs:
build-for-iOS:
if: github.event.pull_request.draft == false
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: actions/checkout@v3
- name: Add iOS targets
run: rustup target add aarch64-apple-ios-sim
- name: Test iOS targets
run: cargo test --package desktop --target aarch64-apple-ios-sim --all --tests