@@ -12,11 +12,12 @@ permissions:
1212 contents : read
1313
1414env :
15+ GNU_TAR_VERSION : " 1.35"
16+ GO_VERSION_DRAGONFLY : " 1.23.3"
1517 GO_VERSION_FREEBSD : " 123"
16- GO_VERSION_OPENBSD : " 1.23.1"
1718 GO_VERSION_NETBSD : " 123"
18- GO_VERSION_DRAGONFLY : " 1.23.3 "
19- GNU_TAR_VERSION : " 1.35 "
19+ GO_VERSION_OPENBSD : " 1.23.1 "
20+ GO_VERSION_SOLARIS : " 1.23.3 "
2021
2122# To spin up one of the VMs below, see the "Debug Shell" section here: https://github.com/vmactions
2223jobs :
3435 usesh : true
3536 prepare : |
3637 pkg update -f
37- pkg install -y bash curl gtar git gmake gsed gnugrep go${GO_VERSION_FREEBSD} python
38+ pkg install -y bash wget gtar git gmake gsed gnugrep go${GO_VERSION_FREEBSD} python
3839 run : |
3940 echo "::group::Setup prerequisites"
4041 set -eu
7273 usesh : true
7374 prepare : |
7475 pkg_add -u
75- pkg_add bash curl gtar-${GNU_TAR_VERSION}p0-static git gmake gsed ggrep go-${GO_VERSION_OPENBSD} python
76+ pkg_add bash wget gtar-${GNU_TAR_VERSION}p0-static git gmake gsed ggrep go-${GO_VERSION_OPENBSD} python
7677 run : |
7778 echo "::group::Setup prerequisites"
7879 set -eu
@@ -109,7 +110,7 @@ jobs:
109110 usesh : true
110111 prepare : |
111112 /usr/sbin/pkg_add -u
112- /usr/sbin/pkg_add curl gtar-base-${GNU_TAR_VERSION} git gmake gsed grep go${GO_VERSION_NETBSD} python312
113+ /usr/sbin/pkg_add wget gtar-base-${GNU_TAR_VERSION} git gmake gsed grep go${GO_VERSION_NETBSD} python312
113114 run : |
114115 echo "::group::Setup prerequisites"
115116 set -eu
@@ -153,8 +154,9 @@ jobs:
153154 set -eu
154155 mkdir bin
155156 export PATH=$(pwd)/bin:$PATH
156- wget https://go.dev/dl/go${GO_VERSION_DRAGONFLY}.dragonfly-amd64.tar.gz
157- gtar xzf go${GO_VERSION_DRAGONFLY}.dragonfly-amd64.tar.gz
157+ GOGZ="go${GO_VERSION_DRAGONFLY}.dragonfly-amd64.tar.gz"
158+ wget https://go.dev/dl/${GOGZ}
159+ gtar xzf ${GOGZ}
158160 ln -s $(pwd)/go/bin/go $(pwd)/bin/go
159161 ln -s $(which ggrep) $(pwd)/bin/grep
160162 ln -s $(which gmake) $(pwd)/bin/make
@@ -173,3 +175,44 @@ jobs:
173175 git config --global --add safe.directory $(pwd)
174176 gmake test-e2e
175177 echo "::endgroup::"
178+
179+ test_solaris :
180+ name : Run end-to-end tests on Solaris
181+ runs-on : ubuntu-latest
182+ steps :
183+ - name : Checkout the repository
184+ uses : actions/checkout@v4
185+ - name : test-e2e
186+ uses : vmactions/solaris-vm@v1
187+ with :
188+ copyback : false
189+ envs : ' GO_VERSION_SOLARIS'
190+ usesh : true
191+ prepare : |
192+ pkg update
193+ pkg install curl gnu-tar git gnu-make gnu-sed gnu-grep # python (build 11.4.42.0.0.111.0 ships with 3.7.10)
194+ run : |
195+ echo "::group::Setup prerequisites"
196+ set -eu
197+ mkdir bin
198+ export PATH=$(pwd)/bin:$PATH
199+ GOGZ="go${GO_VERSION_SOLARIS}.solaris-amd64.tar.gz"
200+ wget https://go.dev/dl/${GOGZ}
201+ gtar xzf ${GOGZ}
202+ ln -s $(which ggrep) $(pwd)/bin/grep
203+ ln -s $(which gmake) $(pwd)/bin/make
204+ ln -s $(which gsed) $(pwd)/bin/sed
205+ ln -s $(which gtar) $(pwd)/bin/tar
206+ export PATH=$(pwd)/bin:$PATH
207+ echo "::endgroup::"
208+
209+ echo "::group::Print environment information"
210+ uname -a
211+ echo "GOOS: $(go env GOOS)"
212+ echo "GOARCH: $(go env GOARCH)"
213+ echo "::endgroup::"
214+
215+ echo "::group::Run End-to-End Tests"
216+ git config --global --add safe.directory $(pwd)
217+ make test-e2e
218+ echo "::endgroup::"
0 commit comments