@@ -122,7 +122,7 @@ jobs:
122122 freebsd :
123123 name : FreeBSD
124124 runs-on : ubuntu-latest
125- if : github.event_name != " pull_request"
125+ if : github.event_name != ' pull_request'
126126 steps :
127127 - name : Checkout
128128 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -145,28 +145,52 @@ jobs:
145145 solaris :
146146 name : Solaris
147147 runs-on : ubuntu-latest
148- if : github.event_name != " pull_request"
148+ if : github.event_name != ' pull_request'
149149 steps :
150150 - name : Checkout
151151 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
152152 with :
153153 submodules : true
154154
155+ - name : Transfer Oracle Studio certificates
156+ env :
157+ PKG_ORACLE_COM_CERTIFICATE_PEM : ${{ secrets.PKG_ORACLE_COM_CERTIFICATE_PEM }}
158+ PKG_ORACLE_COM_KEY_PEM : ${{ secrets.PKG_ORACLE_COM_KEY_PEM }}
159+ run : |
160+ printenv PKG_ORACLE_COM_CERTIFICATE_PEM > pkg.oracle.com.certificate.pem
161+ printenv PKG_ORACLE_COM_KEY_PEM > pkg.oracle.com.key.pem
162+
155163 - name : Prepare
156164 run : ./autogen.sh
157165
158166 - name : Build & test
159167 uses : vmactions/solaris-vm@a89b9438868c70db27e41625f0a5de6ff5e90809 # v1.1.0
160168 with :
161169 usesh : true
170+ # Seriously! Solaris is the only OS to actually ship without a C
171+ # compiler, and not even to provide a simple download to get one!
172+ # You have to actually register with Oracle to get an X.509
173+ # certificate before you can even download their compiler. Whatever.
162174 prepare : |
163- pkg install developer/gcc system/header
175+ cp "$GITHUB_WORKSPACE/pkg.oracle.com.key.pem" /root/pkg.oracle.com.key.pem
176+ cp "$GITHUB_WORKSPACE/pkg.oracle.com.certificate.pem" /root/pkg.oracle.com.certificate.pem
177+ sudo pkg set-publisher \
178+ -k /root/pkg.oracle.com.key.pem \
179+ -c /root/pkg.oracle.com.certificate.pem \
180+ -G "*" -g https://pkg.oracle.com/solarisstudio/release solarisstudio
181+ pkg install developer/build/make system/header
182+ pkg install --accept developerstudio-126/cc
164183
165184 run : |
166185 set -e
186+ PATH=/opt/developerstudio12.6/bin:"$PATH"
187+ export PATH
188+ CC=cc
189+ export CC
190+
167191 ./configure --enable-jit --enable-pcre2-16 --enable-pcre2-32
168- gmake -j3 CPPFLAGS='-Wall -Wextra -Werror'
169- gmake check
192+ make CPPFLAGS='-Wall -Wextra -Werror'
193+ make check
170194
171195 coverage :
172196 name : Code coverage
0 commit comments