From 3d1bd677038ba81fe94865d7d6ca646ffb8ae9ef Mon Sep 17 00:00:00 2001 From: Hannes <55623006+umgefahren@users.noreply.github.com> Date: Thu, 13 May 2021 14:06:13 +0200 Subject: [PATCH] Update rust.yml --- .github/workflows/rust.yml | 45 +++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9563af7..6470700 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,23 +16,28 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 - - name: Build - run: cargo +nightly build - - name: Run tests - run: cargo +nightly test - - build2: - runs-on: [macos-latest] - - steps: - - uses: actions/checkout@v2 - - name: Install Target iOS - run: rustup target add aarch64-apple-ios - - 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 - + - uses: actions/checkout@v2 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + components: rustfmt, clippy + + # `cargo check` command here will use installed `nightly` + # as it is set as an "override" for current directory + + - name: Run cargo check + uses: actions-rs/cargo@v1 + with: + command: check + + - name: Run cargo test + uses: actions-rs/cargo@v1 + with: + command: test + + - name: Run cargo build + uses: actions-rs/cargo@v1 + with: + command: build