Skip to content

Commit

Permalink
ci: expand CI workflows to support multiple operating systems
Browse files Browse the repository at this point in the history
- Add support for running workflows on Windows and macOS in addition to Ubuntu
- Specify cache directories for Go builds on Windows and macOS

Signed-off-by: appleboy <[email protected]>
  • Loading branch information
appleboy committed Dec 28, 2024
1 parent 35ef918 commit 763a479
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
go: [1.21, 1.22, 1.23]
include:
- os: ubuntu-latest
go-build: ~/.cache/go-build
- os: windows-latest
go-build: C:\gocache\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 763a479

Please sign in to comment.