From 0b43f0bc6ce8aad77a5d1417657daddd32905853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 7 Jun 2023 17:25:49 +0200 Subject: [PATCH] ci: Switch back to dtolnay/rust-toolchain action. --- .github/workflows/cbindgen.yml | 22 +++++++--------------- .github/workflows/deploy.yml | 4 +--- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/cbindgen.yml b/.github/workflows/cbindgen.yml index 4d06db0db..93023aaeb 100644 --- a/.github/workflows/cbindgen.yml +++ b/.github/workflows/cbindgen.yml @@ -17,10 +17,9 @@ jobs: - uses: actions/checkout@v3 - name: Install stable - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - components: clippy, rustfmt + components: "clippy, rustfmt" - name: Run rustfmt run: | @@ -32,14 +31,11 @@ jobs: - name: Install minimum supported Rust version id: msrv - uses: actions-rs/toolchain@v1 - with: - toolchain: 1.57 - override: true + uses: dtolnay/rust-toolchain@1.57 - name: Build with minimum supported Rust version run: | - cargo test nonexistent-test --verbose + cargo +${{steps.msrv.outputs.name}} test nonexistent-test --verbose build: @@ -48,10 +44,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Install stable - uses: actions-rs/toolchain@v1 - with: - toolchain: stable + - name: Install stable Rust + uses: dtolnay/rust-toolchain@stable - name: Install Python uses: actions/setup-python@v4 @@ -79,9 +73,7 @@ jobs: (cd target/package/cbindgen-$(cargo run -- --version | cut -d ' ' -f 2) && cargo test --verbose) - name: Install nightly Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly + uses: dtolnay/rust-toolchain@nightly - name: Test env: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 994ea3b8e..379e476d4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,9 +15,7 @@ jobs: - uses: actions/checkout@v3 - name: Install stable - uses: actions-rs/toolchain@v1 - with: - toolchain: stable + uses: dtolnay/rust-toolchain@stable - name: Build cbindgen run: |