From e937bdc0f778a0f120772bde8d2f15981d9ceff7 Mon Sep 17 00:00:00 2001 From: Pranshu Srivastava Date: Sat, 23 Nov 2024 13:28:51 +0530 Subject: [PATCH] chore: support e2e tests on openbsd Signed-off-by: Pranshu Srivastava --- .github/workflows/bsd.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/bsd.yml b/.github/workflows/bsd.yml index 0034aaf8ca..f62aca4266 100644 --- a/.github/workflows/bsd.yml +++ b/.github/workflows/bsd.yml @@ -13,8 +13,9 @@ permissions: env: GO_VERSION_FREEBSD: "123" - GO_VERSION_OPENBSD: "-1.23" + GO_VERSION_OPENBSD: "1.23.1" GNU_GREP_VERSION: "3.11" + GNU_TAR_VERSION: "1.35" jobs: test: @@ -32,17 +33,19 @@ jobs: usesh: true prepare: | pkg update -f - pkg install -y bash curl git gmake gsed grep go${GO_VERSION} python + pkg install -y bash curl gtar-${GNU_TAR_VERSION}p0-static git gmake gsed ggrep go-${GO_VERSION_FREEBSD} python run: | set -eux mkdir bin - ln -s $(which go${GO_VERSION_FREEBSD}) bin/go - ln -s $(which gsed) bin/sed + ln -s $(which go-${GO_VERSION_FREEBSD}) bin/go + ln -s $(which ggrep) bin/grep ln -s $(which gmake) bin/make + ln -s $(which gsed) bin/sed + ln -s $(which gtar) bin/tar export PATH=$(pwd)/bin:$PATH echo "::group::Print environment information" - openbsd-version + freebsd-version uname -a echo "GOOS: $(go env GOOS)" echo "GOARCH: $(go env GOARCH)" @@ -60,23 +63,20 @@ jobs: usesh: true prepare: | pkg_add -u - pkg_info -Q go - pkg_info go - pkg_info -Q grep - pkg_info grep - pkg_info -Q tar - pkg_info tar - pkg_add bash curl tar git gmake gsed grep go${GO_VERSION_OPENBSD} python + pkg_add bash curl gtar-${GNU_TAR_VERSION}p0-static git gmake gsed ggrep go-${GO_VERSION_OPENBSD} python run: | set -eux mkdir bin - ln -s $(which go${GO_VERSION}) bin/go + ln -s $(which go-${GO_VERSION_OPENBSD}) bin/go ln -s $(which gsed) bin/sed + ln -s $(which ggrep) bin/grep ln -s $(which gmake) bin/make + ln -s $(which gtar) bin/tar + # ln -s $(which go-${GO_VERSION_OPENBSD}) bin/go export PATH=$(pwd)/bin:$PATH echo "::group::Print environment information" - freebsd-version + openbsd-version uname -a echo "GOOS: $(go env GOOS)" echo "GOARCH: $(go env GOARCH)" @@ -84,7 +84,7 @@ jobs: echo "::group::Run End-to-End Tests" git config --global --add safe.directory $(pwd) - gmake test-e2e + make test-e2e echo "::endgroup::" - name: Run end-to-end tests on NetBSD