diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cddc26a79..47f295e61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,24 +90,15 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.target }} - profile: minimal - override: true - - - name: Build release binary - uses: actions-rs/cargo@v1 + - name: Setup rust + uses: dtolnay/rust-toolchain@stable with: - command: build - args: --release --locked --target ${{ matrix.target }} - use-cross: ${{ matrix.use-cross || matrix.os == 'ubuntu-latest' }} + targets: ${{ matrix.os }} + + - run: cargo build --release --locked --target ${{ matrix.target }} - name: Prepare binaries (zip) [Windows] if: matrix.os == 'windows-latest'