From 7ef8e33669f9b172bb957ab2ccb7312d402a9563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20Bart=C3=ADk?= <63553146+sambartik@users.noreply.github.com> Date: Sun, 24 Nov 2024 18:58:03 +0100 Subject: [PATCH] Add universal dmg for macOS in release job --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) 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' || '' }}