From 5f18da53ad31076fb99728ace5a8aea6cf5ca4a2 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sun, 28 Jan 2024 17:10:47 -0800 Subject: [PATCH] add a Solaris VM test to Github Actions CI --- .github/workflows/solaris.yml | 51 +++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/solaris.yml diff --git a/.github/workflows/solaris.yml b/.github/workflows/solaris.yml new file mode 100644 index 000000000..af6945eb0 --- /dev/null +++ b/.github/workflows/solaris.yml @@ -0,0 +1,51 @@ +name: Run Solaris tests + +# This test runs within a Solaris VM. +# It is very slow. +# Consequently, we only want to run it on demand. +# The trigger is the feature branch name. + +on: + push: + branches: + - '*sun*' + - '*Sun*' + - '*solaris*' + - '*Solaris*' + +jobs: + test: + runs-on: ubuntu-latest + name: solaris-vm test + env: + EX_TOKEN: "ex_value" + steps: + - uses: actions/checkout@v4 + - name: Test in Solaris + id: test + uses: vmactions/solaris-vm@v1.0.1 + with: + envs: 'EX_TOKEN' + usesh: true + prepare: | + pkgutil -y -i socat + release: "11.4-gcc" + run: | + if [ -n "test" ]; then + echo "false" + fi + if [ "test" ]; then + echo "test" + fi + pwd + ls -lah + whoami + env + psrinfo -vp + cat /etc/release + psrinfo -v + echo "::memstat" | mdb -k + gcc -v + CC=gcc CFLAGS="-Werror -O1" gmake -j check + pkg install cmake + gmake cmakebuild V=1 -- 2.47.2