aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-08-16 21:40:44 +0200
committerJakob Unterwurzacher2021-08-17 09:08:26 +0200
commit8d5b4c517725224a6a1c7bb0425f3b35b7a7e968 (patch)
tree804c79b75261b3ab864ff81db66e0fd79e3c3f90
parenteeb267950a111e4b5169a10ad723b14963667845 (diff)
github actions ci: test different Go versions
-rw-r--r--.github/workflows/ci.yml17
-rw-r--r--Makefile3
2 files changed, 18 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c1b509d..ac06663 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -8,9 +8,24 @@ on:
jobs:
build:
+ strategy:
+ matrix:
+ go:
+ - "1.11.x" # Debian 10 "Buster"
+ - "1.13.x" # Ubuntu 20.04 LTS "focal"
+ - "1.15.x" # Debian 11 "Bullseye"
+ - "1.16.x" # Golang upstream stable
+ - "1.17.x" # Golang upstream stable
+ # Don't cancel everything when one Go version fails
+ fail-fast: false
runs-on: ubuntu-latest
steps:
+ - name: Install Go ${{ matrix.go }}
+ uses: actions/setup-go@v2
+ with:
+ go-version: ${{ matrix.go }}
+
# Looks like Github Actions leaks fds to child processes
# https://github.com/actions/runner/issues/1188
- run: ls -l /proc/self/fd
@@ -26,7 +41,7 @@ jobs:
- run: ./build-without-openssl.bash
- uses: actions/upload-artifact@v2
with:
- name: gocryptfs static binary
+ name: gocryptfs static binary (Go ${{ matrix.go }})
path: gocryptfs
# Actual test steps are in the Makefile
diff --git a/Makefile b/Makefile
index c9c9975..e8fc4d7 100644
--- a/Makefile
+++ b/Makefile
@@ -51,6 +51,7 @@ ci:
go clean -modcache
# GOPROXY=off makes sure we fail instead of making network requests
# (we should not need any!)
- GOPROXY=off ./build.bash
+ # "-mod=vendor" is required for Go 1.11
+ GOPROXY=off ./build.bash -mod=vendor
# Delete "vendor" dir
rm -R vendor