Update rust.yml
This commit is contained in:
parent
a949b4e884
commit
3d1bd67703
1 changed files with 25 additions and 20 deletions
37
.github/workflows/rust.yml
vendored
37
.github/workflows/rust.yml
vendored
|
@ -17,22 +17,27 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build
|
- name: Install latest nightly
|
||||||
run: cargo +nightly build
|
uses: actions-rs/toolchain@v1
|
||||||
- name: Run tests
|
with:
|
||||||
run: cargo +nightly test
|
toolchain: nightly
|
||||||
|
override: true
|
||||||
|
components: rustfmt, clippy
|
||||||
|
|
||||||
build2:
|
# `cargo check` command here will use installed `nightly`
|
||||||
runs-on: [macos-latest]
|
# as it is set as an "override" for current directory
|
||||||
|
|
||||||
steps:
|
- name: Run cargo check
|
||||||
- uses: actions/checkout@v2
|
uses: actions-rs/cargo@v1
|
||||||
- name: Install Target iOS
|
with:
|
||||||
run: rustup target add aarch64-apple-ios
|
command: check
|
||||||
- name: Install Target MacOS ARM
|
|
||||||
run: rustup target add aarch64-apple-darwin
|
|
||||||
- name: Cross Build iOS
|
|
||||||
run: cargo build --target aarch64-apple-ios
|
|
||||||
- name: Cross Build MacOS ARM
|
|
||||||
run: cargo build --target aarch64-apple-darwin
|
|
||||||
|
|
||||||
|
- name: Run cargo test
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: test
|
||||||
|
|
||||||
|
- name: Run cargo build
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
|
Loading…
Reference in a new issue