]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Run Go GitHub action with Go 1.16 as well as 1.17 v1.35.0
authorMatt Joiner <anacrolix@gmail.com>
Mon, 1 Nov 2021 00:46:22 +0000 (11:46 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 1 Nov 2021 01:21:20 +0000 (12:21 +1100)
1.16 is still used by some downstream projects, and it might ensure support for pkg.go.dev (via old build constraint tags).

.github/workflows/go.yml

index ebfc960a396a6cf6a955e6fca84d1b0a35780d20..e3fe8657e2d0cb1ca26954888975669027b9d47c 100644 (file)
@@ -7,13 +7,16 @@ jobs:
   build:
     timeout-minutes: 30
     runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        go-version: [ '1.16', '1.17' ]
     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: Test
       run: go test -race -count 2 -bench . ./...