Skip to content

Commit

Permalink
build(ci): test iOS
Browse files Browse the repository at this point in the history
Signed-off-by: Berend Sliedrecht <[email protected]>
  • Loading branch information
berendsliedrecht committed Apr 24, 2024
1 parent e7a426d commit bebabdc
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 22 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ jobs:

- run: cargo check --target=${{ matrix.target }}


test-android:
name: Test Android

Expand All @@ -132,7 +131,39 @@ jobs:
- name: Run Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 31
api-level: 33
arch: x86_64
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -no-snapshot-save
script: ./.github/workflows/android_test.sh examples/android/target/debug/apk/android.apk

test-ios:
name: Test iOS

runs-on: macos-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
targets: aarch64-apple-ios-sim, aarch64-apple-ios, x86_64-apple-ios

- name: Install xcodegen
run: brew install xcodegen

- name: Install Cargo Xcodebuild
run: cargo install cargo-xcodebuild

- uses: futureware-tech/simulator-action@v3
with:
model: "iPhone 15"
- run: cargo xcodebuild run --manifest-path examples/ios/Cargo.toml

test-output:
runs-on: macos-latest

steps:
- run: ls $ANDROID_HOME/platforms
- run: ls $ANDROID_SDK_ROOT/platforms
2 changes: 1 addition & 1 deletion examples/android/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package = "id.animo.example.android"

[package.metadata.android.sdk]
min_sdk_version = 16
target_sdk_version = 31
target_sdk_version = 33

[lib]
name = "android"
Expand Down
19 changes: 0 additions & 19 deletions examples/ios/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bebabdc

Please sign in to comment.