From 2ae3cfea5cc7b36cb358f5f0267f1cec132fc572 Mon Sep 17 00:00:00 2001 From: iujakchu <86193029+iujakchu@users.noreply.github.com> Date: Thu, 2 Jun 2022 13:39:30 +0800 Subject: [PATCH] Update rust.yml --- .github/workflows/rust.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b47a69c..23dda0a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -17,11 +17,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: rui314/setup-mold@v1 - uses: actions/checkout@v3 - - name: Check - run: cargo check --verbose - - name: Run tests - run: cargo test --verbose - - name: Build - run: cargo build --verbose + - name: Install rustc 1.59.0 + uses: actions-rs/toolchain@v1 + with: + toolchain: 1.59.0 + override: true + + + - uses: rui314/setup-mold@v1 + + - name: Run cargo check + uses: actions-rs/cargo@v1 + with: + command: build --verbose