This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
jobs: | |
dinghy: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install stable rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
target: x86_64-apple-ios | |
override: true | |
# - name: install target | |
# run: rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim | |
- uses: cargo-bins/cargo-binstall@main | |
- name: install cargo-dinghy | |
run: cargo binstall -q --no-confirm --force cargo-dinghy | |
- name: start simulator | |
uses: futureware-tech/simulator-action@v3 | |
with: | |
model: "iPhone 8" | |
- name: Dinghy test | |
run: cargo dinghy --platform auto-ios-x86_64 test | |
working-directory: ./examples/iphone/ | |
bundle: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install stable rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
target: aarch64-apple-ios-sim | |
override: true | |
- run: rustup target add aarch64-apple-ios-sim | |
- uses: cargo-bins/cargo-binstall@main | |
- name: install rust iphone | |
run: cargo binstall -q --no-confirm --force cargo-bundle | |
- name: copy target dir | |
run: cp -r ./examples/iphone /tmp/ | |
- name: build | |
run: cargo bundle --format ios --target aarch64-apple-ios-sim | |
working-directory: /tmp/iphone/ | |
- name: start simulator | |
uses: futureware-tech/simulator-action@v3 | |
# https://github.com/futureware-tech/simulator-action/wiki/Devices-macos-latest | |
with: | |
model: "iPhone 11" | |
- name: drive | |
run: | | |
ls -al target/aarch64-apple-ios-sim/debug/bundle/ios/nickname-ios-test-app.app | |
xcrun simctl install booted target/aarch64-apple-ios-sim/debug/bundle/ios/nickname-ios-test-app.app | |
xcrun simctl launch --console booted com.oligami.nickname-ios-test | |
working-directory: /tmp/iphone/ | |
# https://github.com/simlay/uikit-sys/blob/master/.github/workflows/rust.yml |