From e4324b1ded5f20f3f5598b5ed8e4583ada1ef378 Mon Sep 17 00:00:00 2001 From: ZerNico Date: Sun, 29 Oct 2023 22:06:02 +0100 Subject: [PATCH] ci: build aarch64 and x86_64 seperately --- .github/workflows/release-tauri.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-tauri.yml b/.github/workflows/release-tauri.yml index e2488894..f6e178ca 100644 --- a/.github/workflows/release-tauri.yml +++ b/.github/workflows/release-tauri.yml @@ -14,21 +14,27 @@ jobs: strategy: fail-fast: false matrix: - platform: [macos-latest, ubuntu-20.04, windows-latest] + platform: + [ + { os: 'macos-latest', target: 'aarch64-apple-darwin' }, + { os: 'macos-latest', target: 'x86_64-apple-darwin' }, + { os: 'ubuntu-20.04', target: 'x86_64-unknown-linux-gnu' }, + { os: 'windows-latest', target: 'x86_64-pc-windows-msvc' }, + ] - runs-on: ${{ matrix.platform }} + runs-on: ${{ matrix.platform.os }} steps: - name: Checkout repository uses: actions/checkout@v3 - name: Install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-20.04' + if: matrix.platform.os == 'ubuntu-20.04' run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libasound2-dev alsa - - name: Install rust apple arm target (macos only) - if: matrix.platform == 'macos-latest' + - name: Install rust apple arm target (macos aarch64 only) + if: matrix.platform.target == 'aarch64-apple-darwin' run: rustup target add aarch64-apple-darwin - name: Rust setup @@ -78,4 +84,4 @@ jobs: releaseDraft: true prerelease: false projectPath: ./apps/tauri - args: ${{ matrix.platform == 'macos-latest' && '--target universal-apple-darwin' || '' }} + args: --target ${{ matrix.platform.target }}