Skip to content

Commit

Permalink
chore: support e2e tests on solaris
Browse files Browse the repository at this point in the history
Signed-off-by: Pranshu Srivastava <[email protected]>
  • Loading branch information
rexagod committed Nov 23, 2024
1 parent a2bc990 commit 7e5c3b0
Showing 1 changed file with 28 additions and 21 deletions.
49 changes: 28 additions & 21 deletions .github/workflows/bsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ env:
GO_VERSION_FREEBSD: "123"
GO_VERSION_OPENBSD: "1.23.1"
GO_VERSION_NETBSD: "123"
GO_VERSION_DRAGONFLY: "1.23"
GO_VERSION_SOLARIS: "1.23.3"
GNU_TAR_VERSION: "1.35"

jobs:
Expand Down Expand Up @@ -114,24 +116,24 @@ jobs:
- name: Run end-to-end tests on DragonFly
uses: vmactions/dragonflybsd-vm@v1
if: false
with:
envs: 'GO_VERSION'
envs: 'GO_VERSION_DRAGONFLY GNU_TAR_VERSION'
usesh: true
prepare: |
pkg update -f
pkg install -y bash curl git gmake gsed gnugrep go${GO_VERSION} python
run: |
pkgutil -U
pkgutil -y -i bash curl gtar gmake gsed ggrep go python
run: | # DragonFly6.4 ships with Go 1.21.
set -eux
mkdir bin
ln -s $(which go${GO_VERSION}) bin/go
ln -s $(which gsed) bin/sed
ln -s $(which gnugrep) bin/grep
ln -s $(which go${GO_VERSION_FREEBSD}) bin/go
ln -s $(which ggrep) bin/grep
ln -s $(which gmake) bin/make
export PATH=$PATH:$(pwd)/golang-bin
ln -s $(which gsed) bin/sed
ln -s $(which gtar) bin/tar
export PATH=$(pwd)/bin:$PATH
echo "::group::Print environment information"
freebsd-version
uname -a
echo "GOOS: $(go env GOOS)"
echo "GOARCH: $(go env GOARCH)"
echo "::endgroup::"
Expand All @@ -144,25 +146,30 @@ jobs:
- name: Run end-to-end tests on Solaris
uses: vmactions/solaris-vm@v1
with:
envs: 'GO_VERSION'
envs: 'GO_VERSION_SOLARIS'
usesh: true
prepare: |
prepare: | # Solaris 11.4 ships with Go 1.17.
pkgutil update -f
pkgutil install -y bash curl git gmake gsed gnugrep go${GO_VERSION} python
run: |
pkgutil install -y bash curl gnu-tar git gnu-make gnu-sed gnu-grep python-39
run: |
set -eux
mkdir bin
ln -s $(which go${GO_VERSION}) bin/go
ln -s $(which gsed) bin/sed
ln -s $(which gnugrep) bin/grep
ln -s $(which gmake) bin/make
export PATH=$PATH:$(pwd)/golang-bin
curl -LO https://go.dev/dl/go1.23.3.solaris-amd64.tar.gz
tar xvzf go1.23.3.solaris-amd64.tar.gz
ln -s go/bin/go bin/go
export PATH=$PATH:$(pwd)/bin
echo "::group::Print environment information"
freebsd-version
uname -a
echo "GOOS: $(go env GOOS)"
echo "GOARCH: $(go env GOARCH)"
echo "tar --version: $(tar --version)" || true
echo "gtar --version: $(gtar --version)" || true
echo "make --version: $(make --version)" || true
echo "gmake --version: $(gmake --version)" || true
echo "sed --version: $(sed --version)" || true
echo "gsed --version: $(gsed --version)" || true
echo "grep --version: $(grep --version)" || true
echo "ggrep --version: $(ggrep --version)" || true
echo "::endgroup::"
echo "::group::Run End-to-End Tests"
Expand Down

0 comments on commit 7e5c3b0

Please sign in to comment.