Skip to content

Commit bd5c8a3

Browse files
Add additional Solaris matrix paths
1 parent f5e4013 commit bd5c8a3

File tree

1 file changed

+52
-36
lines changed

1 file changed

+52
-36
lines changed

.github/workflows/ci.yml

Lines changed: 52 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -125,52 +125,68 @@ jobs:
125125
./test.sh
126126
127127
solaris:
128-
name: Solaris
129-
runs-on: ubuntu-24.04
128+
name: Solaris (threads=${{ matrix.use_threads }}, tls=${{ matrix.use_tls }})
129+
runs-on: ubuntu-24.04
130130

131-
steps:
132-
- name: Checkout
133-
uses: actions/checkout@v4
131+
strategy:
132+
fail-fast: false
133+
matrix:
134+
use_threads: [0, 1]
135+
use_tls: [0, 1]
134136

135-
- name: Transfer Oracle Studio certificates
136-
env:
137-
PKG_ORACLE_CERT: ${{ secrets.PKG_ORACLE_CERT }}
138-
PKG_ORACLE_KEY: ${{ secrets.PKG_ORACLE_KEY }}
139-
run: |
140-
set -e
141-
printf '%s\n' "$PKG_ORACLE_CERT" > pkg.oracle.com.certificate.pem
142-
printf '%s\n' "$PKG_ORACLE_KEY" > pkg.oracle.com.key.pem
137+
env:
138+
PKG_ORACLE_CERT: ${{ secrets.PKG_ORACLE_CERT }}
139+
PKG_ORACLE_KEY: ${{ secrets.PKG_ORACLE_KEY }}
143140

144-
- name: Build on Solaris
145-
uses: vmactions/[email protected]
146-
with:
147-
usesh: true
148-
# If you want more RAM/CPUs:
149-
# mem: 4096
150-
prepare: |
151-
set -e
141+
steps:
142+
- name: Checkout
143+
uses: actions/checkout@v4
144+
145+
- name: Transfer Oracle Studio certificates
146+
run: |
147+
set -e
148+
printf '%s\n' "$PKG_ORACLE_CERT" \
149+
> pkg.oracle.com.certificate.pem
150+
printf '%s\n' "$PKG_ORACLE_KEY" \
151+
> pkg.oracle.com.key.pem
152152
153-
# Copy cert/key from the mounted workspace into /root
154-
cp "$GITHUB_WORKSPACE/pkg.oracle.com.key.pem" \
153+
- name: Build on Solaris
154+
uses: vmactions/[email protected]
155+
env:
156+
USE_THREADS: ${{ matrix.use_threads }}
157+
USE_TLS: ${{ matrix.use_tls }}
158+
with:
159+
usesh: true
160+
envs: 'USE_THREADS USE_TLS'
161+
# mem: 4096 # uncomment/tune if you want more RAM
162+
prepare: |
163+
set -e
164+
165+
# Copy cert/key from the mounted workspace into /root
166+
cp "$GITHUB_WORKSPACE/pkg.oracle.com.key.pem" \
155167
/root/pkg.oracle.com.key.pem
156-
cp "$GITHUB_WORKSPACE/pkg.oracle.com.certificate.pem" \
168+
cp "$GITHUB_WORKSPACE/pkg.oracle.com.certificate.pem" \
157169
/root/pkg.oracle.com.certificate.pem
158170
159-
sudo pkg set-publisher \
160-
-k /root/pkg.oracle.com.key.pem \
161-
-c /root/pkg.oracle.com.certificate.pem \
162-
-G "*" \
163-
-g https://pkg.oracle.com/solarisstudio/release \
164-
solarisstudio
171+
sudo pkg set-publisher \
172+
-k /root/pkg.oracle.com.key.pem \
173+
-c /root/pkg.oracle.com.certificate.pem \
174+
-G "*" \
175+
-g https://pkg.oracle.com/solarisstudio/release \
176+
solarisstudio
177+
178+
sudo pkg install --accept developerstudio-126/cc
165179
166-
sudo pkg install --accept developerstudio-126/cc
180+
run: |
181+
set -e
182+
PATH=/opt/developerstudio12.6/bin:"$PATH"
183+
export PATH
167184
168-
run: |
169-
set -e
170-
PATH=/opt/developerstudio12.6/bin:"$PATH"
171-
export PATH
185+
echo "Building with USE_THREADS=$USE_THREADS USE_TLS=$USE_TLS"
172186
173-
gmake -j$(psrinfo -p)
187+
USE_THREADS="$USE_THREADS" \
188+
USE_TLS="$USE_TLS" \
189+
gmake -j"$(psrinfo -p)"
174190
175191
install:
176192
name: Installation tests

0 commit comments

Comments
 (0)