Skip to content

Commit

Permalink
ci: extend GitHub Actions CI to macOS
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
appleboy committed May 21, 2024
1 parent e0ba036 commit 671e12a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, macos-latest]
go: [1.18, 1.19, "1.20", 1.21, 1.22]
include:
- os: ubuntu-latest
go-build: ~/.cache/go-build
- os: macos-latest
go-build: ~/Library/Caches/go-build
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}
env:
Expand Down

0 comments on commit 671e12a

Please sign in to comment.