|
8 | 8 | strategy: |
9 | 9 | matrix: |
10 | 10 | java: [ 21, 23 ] |
11 | | - os: [ubuntu-latest, windows-latest, macos-13, ubuntu-24.04-arm] |
| 11 | + os: [ubuntu-latest, windows-latest, ubuntu-24.04-arm] |
12 | 12 | steps: |
13 | 13 | - uses: actions/checkout@v4 |
14 | 14 | - name: Set up JDK ${{ matrix.java }} |
15 | 15 | uses: actions/setup-java@v4 |
16 | 16 | with: |
17 | 17 | java-version: ${{ matrix.java }} |
18 | 18 | distribution: temurin |
19 | | - - name: Setup docker (missing on MacOS) |
20 | | - id: setup_docker |
21 | | - if: runner.os == 'macos' |
22 | | - continue-on-error: true |
23 | | - run: | |
24 | | - brew install docker colima coreutils |
25 | | - gtimeout 15m colima start |
26 | | - shell: bash |
27 | | - - name: Run Gradle (assemble) |
28 | | - if: runner.os == 'macos' && steps.setup_docker.outcome != 'success' |
29 | | - run: | |
30 | | - # Report success even if previous step failed (Docker on MacOS runner is very unstable) |
31 | | - exit 0; |
| 19 | + # GitHub Actions still not supporting arm64 dind yet |
| 20 | + # https://github.com/douglascamata/setup-docker-macos-action?tab=readme-ov-file#arm64-processors-m-series-used-on-macos-14-images-and-beyond-are-unsupported |
| 21 | + # And they are deprecating the free x64 macos-13 runner by 2025/11/14 |
| 22 | + # https://github.blog/changelog/2025-07-11-upcoming-changes-to-macos-hosted-runners-macos-latest-migration-and-xcode-support-policy-updates/ |
| 23 | + # All new macos-* are arm64 runner by default and x64 runner requires a subscription to `large` runner |
| 24 | + # https://github.com/actions/runner-images?tab=readme-ov-file#available-images |
| 25 | + # Only use non-arm64 agent in this workflow |
32 | 26 | - name: Run Gradle (assemble) |
33 | 27 | shell: bash |
34 | | - if: runner.os != 'macos' |
35 | 28 | run: | |
36 | 29 | ./gradlew assemble --parallel --no-build-cache -PDISABLE_BUILD_CACHE |
37 | | - - name: Run Gradle (assemble) |
38 | | - if: runner.os == 'macos' && steps.setup_docker.outcome == 'success' |
39 | | - run: | |
40 | | - ./gradlew assemble --parallel --no-build-cache -PDISABLE_BUILD_CACHE |
0 commit comments