diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1eda966..cbe5fe0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,9 @@ jobs: - name: Rust setup uses: dtolnay/rust-toolchain@stable + with: + # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds. + targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} - name: Rust cache uses: swatinem/rust-cache@v2 @@ -78,3 +81,4 @@ jobs: releaseBody: "See the assets to download and install this version." releaseDraft: true prerelease: false + args: ${{ matrix.platform == 'macos-latest' && '--target universal-apple-darwin' || '' }}