Update rust.yml

This commit is contained in:
Hannes 2021-05-13 14:06:13 +02:00 committed by GitHub
parent a949b4e884
commit 3d1bd67703
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,23 +16,28 @@ jobs:
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
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
build2: components: rustfmt, clippy
runs-on: [macos-latest]
# `cargo check` command here will use installed `nightly`
steps: # as it is set as an "override" for current directory
- uses: actions/checkout@v2
- name: Install Target iOS - name: Run cargo check
run: rustup target add aarch64-apple-ios uses: actions-rs/cargo@v1
- name: Install Target MacOS ARM with:
run: rustup target add aarch64-apple-darwin command: check
- name: Cross Build iOS
run: cargo build --target aarch64-apple-ios - name: Run cargo test
- name: Cross Build MacOS ARM uses: actions-rs/cargo@v1
run: cargo build --target aarch64-apple-darwin with:
command: test
- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build