From 8241fb741ef6620337a6bbde727d1d9373075017 Mon Sep 17 00:00:00 2001 From: Moreal Date: Sun, 23 Jun 2024 11:41:16 +0900 Subject: [PATCH] ci(gh-actions): replace the action to setup rust toolchain --- .github/workflows/build.yaml | 4 ++-- .github/workflows/lint.yaml | 4 ++-- .github/workflows/publish.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4913846..6557fe4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -7,7 +7,7 @@ jobs: - uses: actions/checkout@v2 with: submodules: recursive - - uses: actions-rs/toolchain@v1.0.3 + - uses: dtolnay/rust-toolchain@stable with: - toolchain: 1.77.2 + components: cargo, rustc, rust-std - run: cargo build diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 613dfe0..e4a8623 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -7,7 +7,7 @@ jobs: - uses: actions/checkout@v2 with: submodules: recursive - - uses: actions-rs/toolchain@v1.0.3 + - uses: dtolnay/rust-toolchain@stable with: - toolchain: 1.77.2 + components: rustfmt - run: cargo fmt --all -- --check diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index c43806f..60529a1 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2 with: submodules: recursive - - uses: actions-rs/toolchain@v1.0.3 + - uses: dtolnay/rust-toolchain@stable with: - toolchain: 1.77.2 + components: cargo - run: cargo publish --token ${{ secrets.CRATES_IO_ACCESS_KEY }}