From 2a1043dd7146908fad12a436735cfdb5997a5333 Mon Sep 17 00:00:00 2001 From: appleboy Date: Sat, 28 Dec 2024 17:20:47 +0800 Subject: [PATCH 1/2] ci: expand OS support in GitHub Actions workflow for Go - Add macOS and Windows to the OS matrix in the GitHub Actions workflow for Go - Specify Go build cache locations for 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..fded80f 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, 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: From 5eb3e086d872d7ece531ab189194ab583277f7a1 Mon Sep 17 00:00:00 2001 From: appleboy Date: Sat, 28 Dec 2024 17:22:05 +0800 Subject: [PATCH 2/2] ci: improve CI workflow and API integration - Remove Windows build job from GitHub Actions workflow Signed-off-by: appleboy --- .github/workflows/go.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index fded80f..2954af5 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -34,8 +34,6 @@ jobs: 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 }}