From 280c3b5013607cc1b4eac31c528216700602da90 Mon Sep 17 00:00:00 2001 From: Milo <50248166+Milo123459@users.noreply.github.com> Date: Thu, 11 Apr 2024 11:21:39 +0100 Subject: [PATCH] change release ci --- .github/workflows/release.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) 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'