From 11529efd7bae7b8dfce763a476d15ccb3e57de25 Mon Sep 17 00:00:00 2001 From: Andrea Frigido Date: Fri, 24 May 2024 10:51:16 +0100 Subject: [PATCH] Fix install rust --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ba10fa..b8fa379 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,8 +77,12 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v3 - - name: Install Rust + - name: Install Rust for Intel + if: matrix.target == 'x86_64-unknown-linux-gnu' || matrix.target == 'x86_64-apple-darwin' || matrix.target == 'x86_64-pc-windows-msvc' run: rustup update stable && rustup default stable + - name: Install Rust for ARM64 + if: matrix.target == 'aarch64-apple-darwin' + run: rustup set profile minimal && rustup target add aarch64-apple-darwin && rustup toolchain install stable-aarch64-apple-darwin - name: Install cargo-dist run: ${{ matrix.install-dist }} - name: Run cargo-dist