aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml17
1 files changed, 14 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b701a0d..1466e88 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -18,21 +18,32 @@ jobs:
args: --issues-exit-code=0 # do not fail ci
only-new-issues: true
test:
- runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ go-version: [1.16.x, 1.17.x]
+ os: [ubuntu-latest, macos-latest, windows-latest]
+ runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
- go-version: 1.17
+ go-version: ${{ matrix.go-version }}
- name: Set up cache
uses: actions/cache@v2
with:
+ # In order:
+ # * Module download cache
+ # * Build cache (Linux)
+ # * Build cache (Mac)
+ # * Build cache (Windows)
path: |
- ~/.cache/go-build
~/go/pkg/mod
+ ~/.cache/go-build
+ ~/Library/Caches/go-build
+ %LocalAppData%\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-