From 763a4790b55a2fca6296f67ebe453bf3502642f0 Mon Sep 17 00:00:00 2001 From: appleboy Date: Sat, 28 Dec 2024 17:11:27 +0800 Subject: [PATCH] ci: expand CI workflows to support multiple operating systems - 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 --- .github/workflows/go.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index caaf0aa..2a3fb0e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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: