Skip to content

Commit

Permalink
Switch to macos-14
Browse files Browse the repository at this point in the history
  • Loading branch information
yukawa committed Feb 2, 2024
1 parent affc4ad commit 44d2cbf
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ concurrency:

jobs:
build_arm64:
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md
runs-on: macos-11
timeout-minutes: 90
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-14-Readme.md
runs-on: macos-14
timeout-minutes: 60

steps:
- name: checkout
Expand All @@ -27,7 +27,7 @@ jobs:
uses: actions/setup-python@v4
with:
cache: 'pip'
python-version: '3.9'
python-version: '3.11'

- name: Install pip dependencies
working-directory: ./src
Expand All @@ -48,10 +48,8 @@ jobs:
- name: Build Qt
working-directory: ./src
# We haven't succeeded to cross build Qt6 for arm64 on intel mac.
# Build a Universal macOS Binary for Qt6 as a workaround.
run: |
python3 build_tools/build_qt.py --release --confirm_license --macos_cpus=x86_64,arm64
python3 build_tools/build_qt.py --release --confirm_license --macos_cpus=arm64
echo "MOZC_QT_PATH=${PWD}/third_party/qt" >> $GITHUB_ENV
- name: bazel build
Expand All @@ -67,9 +65,9 @@ jobs:
if-no-files-found: warn

build_intel64:
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md
runs-on: macos-11
timeout-minutes: 90
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-14-Readme.md
runs-on: macos-14
timeout-minutes: 60

steps:
- name: checkout
Expand All @@ -81,7 +79,7 @@ jobs:
uses: actions/setup-python@v4
with:
cache: 'pip'
python-version: '3.9'
python-version: '3.11'

- name: Install pip dependencies
working-directory: ./src
Expand Down Expand Up @@ -119,9 +117,9 @@ jobs:
if-no-files-found: warn

build_universal_binary:
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md
runs-on: macos-11
timeout-minutes: 120
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-14-Readme.md
runs-on: macos-14
timeout-minutes: 90

steps:
- name: checkout
Expand All @@ -133,7 +131,7 @@ jobs:
uses: actions/setup-python@v4
with:
cache: 'pip'
python-version: '3.9'
python-version: '3.11'

- name: Install pip dependencies
working-directory: ./src
Expand Down Expand Up @@ -171,9 +169,9 @@ jobs:
if-no-files-found: warn

test:
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md
runs-on: macos-11
timeout-minutes: 90
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-14-Readme.md
runs-on: macos-14
timeout-minutes: 60

steps:
- name: checkout
Expand All @@ -185,7 +183,7 @@ jobs:
uses: actions/setup-python@v4
with:
cache: 'pip'
python-version: '3.9'
python-version: '3.11'

- name: Install pip dependencies
working-directory: ./src
Expand Down Expand Up @@ -219,8 +217,8 @@ jobs:
# in other jobs. Another approach would be to use "needs:".
# https://docs.github.com/en/actions/using-jobs/using-jobs-in-a-workflow
cache_deps:
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md
runs-on: macos-11
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-14-Readme.md
runs-on: macos-14
timeout-minutes: 15

steps:
Expand All @@ -230,7 +228,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.11'

- name: Install pip dependencies
working-directory: ./src
Expand Down

0 comments on commit 44d2cbf

Please sign in to comment.