From 6a1002975dc4e46223367ce18634c19592769675 Mon Sep 17 00:00:00 2001 From: abose Date: Thu, 5 Dec 2024 11:27:40 +0530 Subject: [PATCH] fix: macos-12 is deprecated in github, moving to macos-13 --- .github/workflows/desktop-mac-test-pull.yml | 2 +- .github/workflows/tauri-build-dev.yml | 14 +++++++------- .github/workflows/tauri-build-prod.yml | 14 +++++++------- .github/workflows/tauri-build-staging.yml | 14 +++++++------- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/desktop-mac-test-pull.yml b/.github/workflows/desktop-mac-test-pull.yml index 72a1d9d3..28414e89 100644 --- a/.github/workflows/desktop-mac-test-pull.yml +++ b/.github/workflows/desktop-mac-test-pull.yml @@ -9,7 +9,7 @@ concurrency: jobs: test-desktop-mac: - runs-on: macos-12 + runs-on: macos-13 timeout-minutes: 90 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/tauri-build-dev.yml b/.github/workflows/tauri-build-dev.yml index 1e90df44..45277f94 100644 --- a/.github/workflows/tauri-build-dev.yml +++ b/.github/workflows/tauri-build-dev.yml @@ -78,7 +78,7 @@ jobs: strategy: fail-fast: false matrix: - platform: [ macos-12, windows-latest ] + platform: [ macos-13, windows-latest ] runs-on: ${{ matrix.platform }} steps: @@ -92,7 +92,7 @@ jobs: node-version: 20 - name: Download src-node built on mac arm (Mac only) - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' uses: actions/download-artifact@v4 with: name: src-node-darwin-arm64.tar.gz @@ -108,7 +108,7 @@ jobs: npm run _ci-release:dev - name: setup src-node built on mac arm (Mac only) - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' run: | ls /tmp/src-node-darwin-arm64.tar.gz rm -rf src-node @@ -161,7 +161,7 @@ jobs: Set-Content -Path "./secrets.json" -Value $content shell: powershell - name: Sign embedded executables for (Mac Only) - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' env : APPLE_KEY_IDENTITY_NAME: ${{ secrets.APPLE_KEY_IDENTITY_NAME }} APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} @@ -229,7 +229,7 @@ jobs: tagName: ${{ env.GIT_TAG_NAME }} - name: inject src-node built on mac arm (Mac only) - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' run: | ls src-node rm -rf src-tauri/src-node @@ -239,12 +239,12 @@ jobs: - name: setup env for mac arm (Mac only) env: GH_TOKEN: ${{ github.token }} - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' run: | rustup target add aarch64-apple-darwin npm run installNodeArmDarwin - name: build for mac arm (Mac only) - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/tauri-build-prod.yml b/.github/workflows/tauri-build-prod.yml index e6c8b923..bec6e04d 100644 --- a/.github/workflows/tauri-build-prod.yml +++ b/.github/workflows/tauri-build-prod.yml @@ -78,7 +78,7 @@ jobs: strategy: fail-fast: false matrix: - platform: [ macos-12, windows-latest ] + platform: [ macos-13, windows-latest ] runs-on: ${{ matrix.platform }} steps: @@ -92,7 +92,7 @@ jobs: node-version: 20 - name: Download src-node built on mac arm (Mac only) - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' uses: actions/download-artifact@v4 with: name: src-node-darwin-arm64.tar.gz @@ -108,7 +108,7 @@ jobs: npm run _ci-release:prod - name: setup src-node built on mac arm (Mac only) - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' run: | ls /tmp/src-node-darwin-arm64.tar.gz rm -rf src-node @@ -162,7 +162,7 @@ jobs: shell: powershell - name: Sign embedded executables for (Mac Only) - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' env : APPLE_KEY_IDENTITY_NAME: ${{ secrets.APPLE_KEY_IDENTITY_NAME }} APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} @@ -230,7 +230,7 @@ jobs: tagName: ${{ env.GIT_TAG_NAME }} - name: inject src-node built on mac arm (Mac only) - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' run: | ls src-node rm -rf src-tauri/src-node @@ -240,12 +240,12 @@ jobs: - name: setup env for mac arm (Mac only) env: GH_TOKEN: ${{ github.token }} - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' run: | rustup target add aarch64-apple-darwin npm run installNodeArmDarwin - name: build for mac arm (Mac only) - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/tauri-build-staging.yml b/.github/workflows/tauri-build-staging.yml index 6ec35a13..a43117f9 100644 --- a/.github/workflows/tauri-build-staging.yml +++ b/.github/workflows/tauri-build-staging.yml @@ -78,7 +78,7 @@ jobs: strategy: fail-fast: false matrix: - platform: [ macos-12, windows-latest ] + platform: [ macos-13, windows-latest ] runs-on: ${{ matrix.platform }} steps: @@ -92,7 +92,7 @@ jobs: node-version: 20 - name: Download src-node built on mac arm (Mac only) - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' uses: actions/download-artifact@v4 with: name: src-node-darwin-arm64.tar.gz @@ -106,7 +106,7 @@ jobs: npm run _ci-release:staging - name: setup src-node built on mac arm (Mac only) - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' run: | ls /tmp/src-node-darwin-arm64.tar.gz rm -rf src-node @@ -159,7 +159,7 @@ jobs: Set-Content -Path "./secrets.json" -Value $content shell: powershell - name: Sign embedded executables for (Mac Only) - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' env : APPLE_KEY_IDENTITY_NAME: ${{ secrets.APPLE_KEY_IDENTITY_NAME }} APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} @@ -227,7 +227,7 @@ jobs: tagName: ${{ env.GIT_TAG_NAME }} - name: inject src-node built on mac arm (Mac only) - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' run: | ls src-node rm -rf src-tauri/src-node @@ -237,12 +237,12 @@ jobs: - name: setup env for mac arm (Mac only) env: GH_TOKEN: ${{ github.token }} - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' run: | rustup target add aarch64-apple-darwin npm run installNodeArmDarwin - name: build for mac arm (Mac only) - if: matrix.platform == 'macos-12' + if: matrix.platform == 'macos-13' uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ github.token }}