2021-05-13 11:55:19 +00:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
on:
|
|
|
|
push
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build
|
2021-05-13 12:00:54 +00:00
|
|
|
run: cargo +nightly build
|
2021-05-13 11:55:19 +00:00
|
|
|
- name: Run tests
|
2021-05-13 12:00:54 +00:00
|
|
|
run: cargo +nightly test
|
2021-05-13 11:55:19 +00:00
|
|
|
|
|
|
|
build2:
|
|
|
|
runs-on: [macos-latest]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-05-13 12:00:54 +00:00
|
|
|
- name: Install Target iOS
|
|
|
|
run: rustup target add aarch64-apple-ios
|
|
|
|
- name: Install Target MacOS ARM
|
|
|
|
run: rustup target add aarch64-apple-darwin
|
2021-05-13 11:55:19 +00:00
|
|
|
- name: Cross Build iOS
|
|
|
|
run: cargo build --target aarch64-apple-ios
|
|
|
|
- name: Cross Build MacOS ARM
|
|
|
|
run: cargo build --target aarch64-apple-darwin
|
|
|
|
|