From 57094d7793174f9b78b464ae0979f337788761d8 Mon Sep 17 00:00:00 2001 From: abose Date: Tue, 7 Nov 2023 11:23:28 +0530 Subject: [PATCH] chore: mac m1 prod releases with m1 macs --- .github/workflows/tauri-build-prod.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tauri-build-prod.yml b/.github/workflows/tauri-build-prod.yml index 677c5625..88ab1d2d 100644 --- a/.github/workflows/tauri-build-prod.yml +++ b/.github/workflows/tauri-build-prod.yml @@ -2,7 +2,7 @@ name: 'generate production draft GitHub release' on: push: - branches: [ prod ] + branches: [ xx ] jobs: create-release: @@ -43,10 +43,11 @@ jobs: needs: create-release permissions: contents: write + timeout-minutes: 45 strategy: fail-fast: false matrix: - platform: [ macos-latest, ubuntu-latest, windows-latest ] + platform: [ macos-latest, macos-latest-large, ubuntu-latest, windows-latest ] runs-on: ${{ matrix.platform }} steps: @@ -72,6 +73,7 @@ jobs: run: | npm ci npm run _ci-release:prod + - name: install AzureSignTool (windows only) if: matrix.platform == 'windows-latest' run: | @@ -116,8 +118,9 @@ jobs: # Write the content back to the file Set-Content -Path "./secrets.json" -Value $content shell: powershell + - name: Sign embedded executables for (Mac Only) - if: matrix.platform == 'macos-latest' + if: matrix.platform == 'macos-latest' || matrix.platform == 'macos-latest-large' env : APPLE_KEY_IDENTITY_NAME: ${{ secrets.APPLE_KEY_IDENTITY_NAME }} APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} @@ -173,12 +176,12 @@ jobs: tagName: ${{ env.GIT_TAG_NAME }} - name: setup env for mac arm (Mac only) - if: matrix.platform == 'macos-latest' + if: matrix.platform == 'macos-latest-large' run: | rustup target add aarch64-apple-darwin npm run installNodeArmDarwin - name: build for mac arm (Mac only) - if: matrix.platform == 'macos-latest' + if: matrix.platform == 'macos-latest-large' uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}