Skip to content

Commit 671e12a

Browse files
committed
ci: extend GitHub Actions CI to macOS
- Expand test matrix in GitHub Actions to include macOS alongside Ubuntu - Add caching for Go build files on macOS runner Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent e0ba036 commit 671e12a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/go.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ jobs:
2929
test:
3030
strategy:
3131
matrix:
32-
os: [ubuntu-latest]
32+
os: [ubuntu-latest, macos-latest]
3333
go: [1.18, 1.19, "1.20", 1.21, 1.22]
3434
include:
3535
- os: ubuntu-latest
3636
go-build: ~/.cache/go-build
37+
- os: macos-latest
38+
go-build: ~/Library/Caches/go-build
3739
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
3840
runs-on: ${{ matrix.os }}
3941
env:

0 commit comments

Comments
 (0)