From 0c38f85537d2c2f22b4c9b4c2e69112515f39283 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Mon, 17 Jun 2024 19:09:40 +0800 Subject: [PATCH 1/2] ci: replace macos-latest with macos-13 for go1.13 --- .github/workflows/test.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 99501a12..ce2bb0cc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -55,8 +55,18 @@ jobs: strategy: fail-fast: false matrix: - go: [1.13, 1.21] + go: [1.13, 1.22] os: [ubuntu-latest, macos-latest, windows-latest] + include: + - go: 1.13 + os: macos-13 + exclude: + # Starting macOS 14 GitHub Actions runners are arm-based, + # but Go didn't support arm64 until 1.16. Thus, we must + # replace the macOS 14 runner with macOS 13 runner for Go 1.13. + # Ref: https://github.com/actions/runner-images/issues/9741 + - go: 1.13 + os: macos-latest name: Go ${{ matrix.go }} @ ${{ matrix.os }} runs-on: ${{ matrix.os}} steps: From 022104344a7c7d5a6ce526e9cd93f93e569460ef Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Mon, 17 Jun 2024 19:23:11 +0800 Subject: [PATCH 2/2] ci: use macos-12 --- .github/workflows/test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ce2bb0cc..04343509 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,12 +58,16 @@ jobs: go: [1.13, 1.22] os: [ubuntu-latest, macos-latest, windows-latest] include: + # TODO(panjf2000): There is an uncanny issue arising when downloading + # go modules on macOS 13 for Go1.13. So we use macOS 12 for now, + # but try to figure it out and use macOS once it's resolved. + # https://github.com/panjf2000/ants/actions/runs/9546726268/job/26310385582 - go: 1.13 - os: macos-13 + os: macos-12 exclude: # Starting macOS 14 GitHub Actions runners are arm-based, # but Go didn't support arm64 until 1.16. Thus, we must - # replace the macOS 14 runner with macOS 13 runner for Go 1.13. + # replace the macOS 14 runner with macOS 12 runner for Go 1.13. # Ref: https://github.com/actions/runner-images/issues/9741 - go: 1.13 os: macos-latest