Update build environment for GitHub Actions from macOS 12 to 15 (#3226)

* Update build environment for GitHub Actions from macOS 12 to 15

* Fix node issue

* Add fix to other workflows
This commit is contained in:
Devin Binnie
2024-11-25 13:46:25 -05:00
committed by GitHub
parent 513a7e0a86
commit 80986355f2
7 changed files with 15 additions and 8 deletions

View File

@@ -139,7 +139,7 @@ jobs:
retention-days: 10 ## No need to keep CI builds more than 10 days retention-days: 10 ## No need to keep CI builds more than 10 days
build-mac-for-pr: build-mac-for-pr:
runs-on: macos-12 runs-on: macos-15
if: ${{ github.event.label.name == 'Build Apps for PR' }} if: ${{ github.event.label.name == 'Build Apps for PR' }}
steps: steps:
- name: ci/checkout-repo - name: ci/checkout-repo
@@ -158,6 +158,7 @@ jobs:
run: | run: |
brew install yq brew install yq
jq '.mac.target=["zip"]' electron-builder.json | jq '.mac.gatekeeperAssess=false' > /tmp/electron-builder.json && cp /tmp/electron-builder.json . jq '.mac.target=["zip"]' electron-builder.json | jq '.mac.gatekeeperAssess=false' > /tmp/electron-builder.json && cp /tmp/electron-builder.json .
sudo xcode-select -s /Applications/Xcode_16.1.app/Contents/Developer
npm ci npm ci
- name: ci/build - name: ci/build
env: env:

View File

@@ -142,7 +142,7 @@ jobs:
retention-days: 10 ## No need to keep CI builds more than 10 days retention-days: 10 ## No need to keep CI builds more than 10 days
build-mac-no-dmg: build-mac-no-dmg:
runs-on: macos-12 runs-on: macos-15
steps: steps:
- name: ci/checkout-repo - name: ci/checkout-repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -158,6 +158,7 @@ jobs:
run: | run: |
brew install yq brew install yq
jq '.mac.target=["zip"]' electron-builder.json | jq '.mac.gatekeeperAssess=false' > /tmp/electron-builder.json && cp /tmp/electron-builder.json . jq '.mac.target=["zip"]' electron-builder.json | jq '.mac.gatekeeperAssess=false' > /tmp/electron-builder.json && cp /tmp/electron-builder.json .
sudo xcode-select -s /Applications/Xcode_16.1.app/Contents/Developer
npm ci npm ci
- name: ci/test - name: ci/test
uses: ./.github/actions/test uses: ./.github/actions/test

View File

@@ -49,7 +49,7 @@ jobs:
strategy: strategy:
matrix: matrix:
runs-on: runs-on:
- macos-13 - macos-15
- ubuntu-22.04 - ubuntu-22.04
- windows-2022 - windows-2022
uses: ./.github/workflows/e2e-functional-template.yml uses: ./.github/workflows/e2e-functional-template.yml

View File

@@ -106,7 +106,7 @@ jobs:
retention-days: 5 ## No need to keep them since they are uploaded on S3 retention-days: 5 ## No need to keep them since they are uploaded on S3
mac-app-store-preflight: mac-app-store-preflight:
runs-on: macos-12 runs-on: macos-15
env: env:
MAS_PROFILE: ${{ secrets.MM_DESKTOP_MAC_APP_STORE_MAS_PROFILE }} MAS_PROFILE: ${{ secrets.MM_DESKTOP_MAC_APP_STORE_MAS_PROFILE }}
MACOS_API_KEY_ID: ${{ secrets.MM_DESKTOP_MAC_APP_STORE_MACOS_API_KEY_ID }} MACOS_API_KEY_ID: ${{ secrets.MM_DESKTOP_MAC_APP_STORE_MACOS_API_KEY_ID }}
@@ -129,6 +129,7 @@ jobs:
- name: nightly/install-dependencies - name: nightly/install-dependencies
run: | run: |
brew install yq brew install yq
sudo xcode-select -s /Applications/Xcode_16.1.app/Contents/Developer
npm ci npm ci
- name: nightly/copy-provisioning-profile - name: nightly/copy-provisioning-profile
run: echo $MAS_PROFILE | base64 -D > ./mas.provisionprofile run: echo $MAS_PROFILE | base64 -D > ./mas.provisionprofile
@@ -142,7 +143,7 @@ jobs:
run: fastlane publish_test path:"$(find . -name \*.pkg -print -quit)" run: fastlane publish_test path:"$(find . -name \*.pkg -print -quit)"
build-mac-installer: build-mac-installer:
runs-on: macos-12 runs-on: macos-15
needs: needs:
- mac-app-store-preflight - mac-app-store-preflight
steps: steps:
@@ -159,6 +160,7 @@ jobs:
- name: nightly/install-dependencies - name: nightly/install-dependencies
run: | run: |
brew install yq rename brew install yq rename
sudo xcode-select -s /Applications/Xcode_16.1.app/Contents/Developer
npm ci npm ci
- name: nightly/test - name: nightly/test
uses: ./.github/actions/test uses: ./.github/actions/test

View File

@@ -73,7 +73,7 @@ jobs:
retention-days: 5 ## No need to keep them since they are uploaded on S3 retention-days: 5 ## No need to keep them since they are uploaded on S3
build-mac-installer: build-mac-installer:
runs-on: macos-12 runs-on: macos-15
steps: steps:
- name: nightly/checkout-repo - name: nightly/checkout-repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -88,6 +88,7 @@ jobs:
- name: nightly/install-dependencies - name: nightly/install-dependencies
run: | run: |
brew install yq rename brew install yq rename
sudo xcode-select -s /Applications/Xcode_16.1.app/Contents/Developer
npm ci npm ci
- name: nightly/test - name: nightly/test
uses: ./.github/actions/test uses: ./.github/actions/test

View File

@@ -15,7 +15,7 @@ env:
jobs: jobs:
mac-app-store-preflight: mac-app-store-preflight:
runs-on: macos-12 runs-on: macos-15
env: env:
MAS_PROFILE: ${{ secrets.MM_DESKTOP_MAC_APP_STORE_MAS_PROFILE }} MAS_PROFILE: ${{ secrets.MM_DESKTOP_MAC_APP_STORE_MAS_PROFILE }}
MACOS_API_KEY_ID: ${{ secrets.MM_DESKTOP_MAC_APP_STORE_MACOS_API_KEY_ID }} MACOS_API_KEY_ID: ${{ secrets.MM_DESKTOP_MAC_APP_STORE_MACOS_API_KEY_ID }}
@@ -36,6 +36,7 @@ jobs:
- name: release/install-dependencies - name: release/install-dependencies
run: | run: |
brew install yq brew install yq
sudo xcode-select -s /Applications/Xcode_16.1.app/Contents/Developer
npm ci npm ci
- name: release/copy-provisioning-profile - name: release/copy-provisioning-profile
run: echo $MAS_PROFILE | base64 -D > ./mas.provisionprofile run: echo $MAS_PROFILE | base64 -D > ./mas.provisionprofile

View File

@@ -119,7 +119,7 @@ jobs:
retention-days: 14 retention-days: 14
build-mac-installer: build-mac-installer:
runs-on: macos-12 runs-on: macos-15
needs: needs:
- begin-notification - begin-notification
steps: steps:
@@ -136,6 +136,7 @@ jobs:
- name: release/install-dependencies - name: release/install-dependencies
run: | run: |
brew install yq rename brew install yq rename
sudo xcode-select -s /Applications/Xcode_16.1.app/Contents/Developer
npm ci npm ci
- name: release/test - name: release/test
uses: ./.github/actions/test uses: ./.github/actions/test