Skip to content

Commit 009f4b0

Browse files
authored
.github/workflows: use 'exclude' (#303)
1 parent 5adc58c commit 009f4b0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,14 @@ jobs:
143143
matrix:
144144
os: ['FreeBSD', 'NetBSD']
145145
go: ['1.18.10', '1.19.13', '1.20.14', '1.21.13', '1.22.12', '1.23.7', '1.24.1']
146+
exclude:
147+
# there are no prebuilt download links for these versions of Go for NetBSD
148+
- os: NetBSD
149+
go: '1.18.10'
150+
- os: NetBSD
151+
go: '1.19.13'
152+
- os: NetBSD
153+
go: '1.20.14'
146154
name: Test with Go ${{ matrix.go }} on ${{ matrix.os }}
147155
runs-on: ubuntu-22.04
148156
defaults:
@@ -161,8 +169,7 @@ jobs:
161169
chmod +x $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh
162170
run: $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh
163171
- name: Run in NetBSD
164-
# there are no prebuilt download links for these versions of Go for NetBSD
165-
if: matrix.os == 'NetBSD' && !startsWith(matrix.go, '1.18.') && !startsWith(matrix.go, '1.19.') && !startsWith(matrix.go, '1.20.')
172+
if: matrix.os == 'NetBSD'
166173
uses: vmactions/netbsd-vm@v1
167174
with:
168175
usesh: true

0 commit comments

Comments
 (0)