image: openbsd/latest packages: - go - gmake - xz tasks: - all: | # OpenBSD 6.8 only ships with Go 1.15 curl -O https://ruderich.eu/go-1.16.3-openbsd-amd64.tar.xz xz -d go-1.16.3-openbsd-amd64.tar.xz tar xf go-1.16.3-openbsd-amd64.tar mv go-1.16.3 go # doas ln -sf /usr/local/bin/gmake /usr/bin/make cd safcm # Go does not yet support -race on OpenBSD ./ci/run GOFLAGS= TESTFLAGS=-v # Also run all tests as root (-R and -h conflict on OpenBSD) doas chown -R root:wheel . # Remove $HOME hack once Go 1.16 is available doas /bin/sh -c "HOME=$HOME ./ci/run GOFLAGS= TESTFLAGS=-v"