diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1dc6f938..206fc214 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,14 +59,6 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - - name: Set up Rust - uses: actions-rs/toolchain@v1 - id: rust-toolchain - with: - profile: minimal - toolchain: nightly - override: true - name: Cache Cargo uses: actions/cache@v4 @@ -79,6 +71,14 @@ jobs: ~/.cargo/git/db/ target/ key: ${{ matrix.target }}-cargo-${{ hashFiles('**/Cargo.lock') }} + + - name: Set up Rust + uses: actions-rs/toolchain@v1 + id: rust-toolchain + with: + profile: minimal + toolchain: nightly + override: true - name: Install semantic-release-cargo uses: taiki-e/install-action@v2