From 47b7c5508f2b3b663631f3b2c399bde544ab47d3 Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Sat, 11 Apr 2020 20:55:58 -0700 Subject: [PATCH] Use hecrj/setup-rust-action for some CI since it has better matchers --- .github/workflows/main.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 861e28f..f10f95b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,13 +25,11 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + # This has a matcher for test panics, so we use it even though elsewhere + # we use actions-rs/toolchain. + - uses: hecrj/setup-rust-action@v1 with: - target: ${{ matrix.platform.target }} - default: true - profile: minimal - toolchain: stable - override: true + rust-version: stable - uses: actions-rs/cargo@v1 with: @@ -99,11 +97,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + # This has a matcher for rustfmt errors, so we use it even though + # elsewhere we use actions-rs/toolchain. + - uses: hecrj/setup-rust-action@v1 with: - profile: minimal - toolchain: stable - override: true + rust-version: stable + components: rustfmt - run: rustup component add rustfmt - uses: actions-rs/cargo@v1 with: