From 36ddb5473c170f35ab277071f10cb9bd2acd4fb1 Mon Sep 17 00:00:00 2001 From: ZerNico Date: Sun, 29 Oct 2023 13:35:50 +0100 Subject: [PATCH] ci: build universal build --- .github/workflows/release-tauri.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-tauri.yml b/.github/workflows/release-tauri.yml index a539c6b..e248889 100644 --- a/.github/workflows/release-tauri.yml +++ b/.github/workflows/release-tauri.yml @@ -5,6 +5,7 @@ on: - main paths: - 'apps/tauri/**' + - '.github/workflows/release-tauri.yml' jobs: publish-tauri: @@ -20,12 +21,16 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: install dependencies (ubuntu only) + - name: Install dependencies (ubuntu only) if: matrix.platform == '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' + run: rustup target add aarch64-apple-darwin + - name: Rust setup uses: dtolnay/rust-toolchain@stable @@ -40,7 +45,7 @@ jobs: with: version: 7 run_install: false - + - name: Get pnpm store directory id: pnpm-cache shell: bash @@ -72,4 +77,5 @@ jobs: releaseBody: 'See the assets to download this version and install.' releaseDraft: true prerelease: false - projectPath: ./apps/tauri \ No newline at end of file + projectPath: ./apps/tauri + args: ${{ matrix.platform == 'macos-latest' && '--target universal-apple-darwin' || '' }}