Skip to content

Commit

Permalink
Merge pull request #1587 from phargogh/task/1581-release-3.14.2
Browse files Browse the repository at this point in the history
Fall back to x64 MacOS runners for GitHub Actions
  • Loading branch information
emlys authored May 29, 2024
2 parents ef4dbd8 + 9ac247e commit 99523bb
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
fail-fast: false
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
os: [windows-latest, macos-latest]
os: [windows-latest, macos-13]
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
os: [windows-latest, macos-latest]
os: [windows-latest, macos-13]
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -203,17 +203,17 @@ jobs:
# overwrite artifacts or have duplicates (mac/windows sdists have
# different extensions)
- name: Authenticate GCP
if: github.event_name != 'pull_request' && matrix.os == 'macos-latest' && matrix.python-version == env.LATEST_SUPPORTED_PYTHON_VERSION
if: github.event_name != 'pull_request' && matrix.os == 'macos-13' && matrix.python-version == env.LATEST_SUPPORTED_PYTHON_VERSION
uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.GOOGLE_SERVICE_ACC_KEY }}

- name: Set up GCP
if: github.event_name != 'pull_request' && matrix.os == 'macos-latest' && matrix.python-version == env.LATEST_SUPPORTED_PYTHON_VERSION
if: github.event_name != 'pull_request' && matrix.os == 'macos-13' && matrix.python-version == env.LATEST_SUPPORTED_PYTHON_VERSION
uses: google-github-actions/setup-gcloud@v0

- name: Deploy artifacts to GCS
if: github.event_name != 'pull_request' && matrix.os == 'macos-latest' && matrix.python-version == env.LATEST_SUPPORTED_PYTHON_VERSION
if: github.event_name != 'pull_request' && matrix.os == 'macos-13' && matrix.python-version == env.LATEST_SUPPORTED_PYTHON_VERSION
run: make deploy

validate-resources:
Expand Down Expand Up @@ -248,7 +248,7 @@ jobs:
fail-fast: false
max-parallel: 4
matrix:
os: [windows-latest, macos-latest]
os: [windows-latest, macos-13]

steps:
- name: Check out repo
Expand Down Expand Up @@ -298,9 +298,9 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]
os: [macos-13, windows-latest]
include:
- os: macos-latest
- os: macos-13
puppeteer-log: ~/Library/Logs/invest-workbench/
workspace-path: InVEST-failed-mac-workspace.tar
binary-extension: dmg
Expand Down Expand Up @@ -386,7 +386,7 @@ jobs:
yarn run dist
- name: Build Workbench (macOS)
if: github.event_name != 'pull_request' && matrix.os == 'macos-latest' # secrets not available in PR
if: github.event_name != 'pull_request' && matrix.os == 'macos-13' # secrets not available in PR
working-directory: workbench
env:
GH_TOKEN: env.GITHUB_TOKEN
Expand Down Expand Up @@ -416,7 +416,7 @@ jobs:
run: npx cross-env CI=true yarn run test-electron-app

- name: Sign binaries (macOS)
if: github.event_name != 'pull_request' && matrix.os == 'macos-latest' # secrets not available in PR
if: github.event_name != 'pull_request' && matrix.os == 'macos-13' # secrets not available in PR
env:
CERT_FILE: 2025-01-16-Expiry-AppStore-App.p12
CERT_PASS: ${{ secrets.MACOS_CODESIGN_CERT_PASS }}
Expand Down Expand Up @@ -468,7 +468,7 @@ jobs:
run: make invest_autotest

- name: Tar the workspace to preserve permissions (macOS)
if: failure() && matrix.os == 'macos-latest'
if: failure() && matrix.os == 'macos-13'
run: tar -cvf ${{ matrix.workspace-path}} ${{ github.workspace }}

- name: Upload workspace on failure
Expand Down

0 comments on commit 99523bb

Please sign in to comment.