github actions ci: test different Go versions
This commit is contained in:
parent
eeb267950a
commit
8d5b4c5177
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -8,9 +8,24 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
# Looks like Github Actions leaks fds to child processes
|
||||||
# https://github.com/actions/runner/issues/1188
|
# https://github.com/actions/runner/issues/1188
|
||||||
- run: ls -l /proc/self/fd
|
- run: ls -l /proc/self/fd
|
||||||
@ -26,7 +41,7 @@ jobs:
|
|||||||
- run: ./build-without-openssl.bash
|
- run: ./build-without-openssl.bash
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: gocryptfs static binary
|
name: gocryptfs static binary (Go ${{ matrix.go }})
|
||||||
path: gocryptfs
|
path: gocryptfs
|
||||||
|
|
||||||
# Actual test steps are in the Makefile
|
# Actual test steps are in the Makefile
|
||||||
|
3
Makefile
3
Makefile
@ -51,6 +51,7 @@ ci:
|
|||||||
go clean -modcache
|
go clean -modcache
|
||||||
# GOPROXY=off makes sure we fail instead of making network requests
|
# GOPROXY=off makes sure we fail instead of making network requests
|
||||||
# (we should not need any!)
|
# (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
|
# Delete "vendor" dir
|
||||||
rm -R vendor
|
rm -R vendor
|
||||||
|
Loading…
Reference in New Issue
Block a user