From b2b0bcbc079cd1fba1aaa399567fc57d871f167a Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 28 Sep 2024 03:44:41 +0900 Subject: [PATCH] ci: Use taiki-e/github-actions/install-rust action https://github.com/taiki-e/github-actions/commit/3d23ff7968df58dccbe78a56af766ca42d34e05f --- .github/workflows/ci.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d14ce61..2a3a182 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,9 +62,11 @@ jobs: timeout-minutes: 60 steps: - uses: taiki-e/checkout-action@v1 - - name: Install Rust - run: rustup toolchain add "${{ matrix.rust }}" --no-self-update --component rust-src && rustup default "${{ matrix.rust }}" - - run: rustup target add thumbv6m-none-eabi + - uses: taiki-e/github-actions/install-rust@main + with: + toolchain: ${{ matrix.rust }} + component: rust-src + target: thumbv6m-none-eabi - uses: taiki-e/install-action@cargo-hack - uses: taiki-e/install-action@cargo-minimal-versions - uses: taiki-e/install-action@cargo-careful @@ -88,7 +90,6 @@ jobs: timeout-minutes: 60 steps: - uses: taiki-e/checkout-action@v1 - - name: Install Rust - run: rustup toolchain add nightly --no-self-update && rustup default nightly + - uses: taiki-e/github-actions/install-rust@nightly - run: tools/gen.sh - run: git add -N . && git diff --exit-code