2020-10-31 21:36:24 +00:00
|
|
|
name: iOS cron CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2021-01-27 01:11:38 +00:00
|
|
|
- cron: "0 0 * * *"
|
2020-10-31 21:36:24 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-01-27 01:11:38 +00:00
|
|
|
runs-on: macos-latest
|
2020-10-31 21:36:24 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
|
2021-06-01 20:06:33 +00:00
|
|
|
- uses: actions/cache@v2.1.6
|
2020-10-31 21:36:24 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
target
|
|
|
|
key: ${{ runner.os }}-cargo-check-test-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
|
|
|
|
- uses: actions-rs/install@v0.1
|
|
|
|
with:
|
|
|
|
crate: cargo-lipo
|
|
|
|
version: latest
|
|
|
|
|
|
|
|
- name: Add iOS targets
|
|
|
|
run: rustup target add aarch64-apple-ios x86_64-apple-ios
|
|
|
|
|
|
|
|
- name: Build and install iOS app in iOS Simulator.
|
|
|
|
run: cd examples/ios && make install
|