.github/workflows: use 'exclude' (#303)
- commit
- 009f4b0e473c90e938fda983e6945c5c00c4cca5
- author
- Hajime Hoshi · · 2025-03-09 17:03 UTC
- committer
- GitHub · · 2025-03-09 17:03 UTC
- parent
- 5adc58c
- signature
- GPG Unverified
B5690EEEBB952194The key is unknown
1 file · +9 -2
M .github/workflows/test.yml +9 -2
| @@ -143,6 +143,14 @@ jobs: | |||
| 143 | 143 | matrix: | |
| 144 | 144 | os: ['FreeBSD', 'NetBSD'] | |
| 145 | 145 | 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' | |
| 146 | 154 | name: Test with Go ${{ matrix.go }} on ${{ matrix.os }} | |
| 147 | 155 | runs-on: ubuntu-22.04 | |
| 148 | 156 | defaults: | |
| @@ -161,8 +169,7 @@ jobs: | |||
| 161 | 169 | chmod +x $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | |
| 162 | 170 | run: $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | |
| 163 | 171 | - 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' | |
| 166 | 173 | uses: vmactions/netbsd-vm@v1 | |
| 167 | 174 | with: | |
| 168 | 175 | usesh: true | |
| @@ -143,6 +143,14 @@ jobs: | |||||
| 143 | matrix: | 143 | matrix: | ||
| 144 | os: ['FreeBSD', 'NetBSD'] | 144 | os: ['FreeBSD', 'NetBSD'] | ||
| 145 | go: ['1.18.10', '1.19.13', '1.20.14', '1.21.13', '1.22.12', '1.23.7', '1.24.1'] | 145 | 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' | |||
| 146 | name: Test with Go ${{ matrix.go }} on ${{ matrix.os }} | 154 | name: Test with Go ${{ matrix.go }} on ${{ matrix.os }} | ||
| 147 | runs-on: ubuntu-22.04 | 155 | runs-on: ubuntu-22.04 | ||
| 148 | defaults: | 156 | defaults: | ||
| @@ -161,8 +169,7 @@ jobs: | |||||
| 161 | chmod +x $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | 169 | chmod +x $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | ||
| 162 | run: $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | 170 | run: $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | ||
| 163 | - name: Run in NetBSD | 171 | - name: Run in NetBSD | ||
| 164 | - | # there are no prebuilt download links for these versions of Go for NetBSD | 172 | + | if: matrix.os == 'NetBSD' |
| 165 | - | if: matrix.os == 'NetBSD' && !startsWith(matrix.go, '1.18.') && !startsWith(matrix.go, '1.19.') && !startsWith(matrix.go, '1.20.') | |||
| 166 | uses: vmactions/netbsd-vm@v1 | 173 | uses: vmactions/netbsd-vm@v1 | ||
| 167 | with: | 174 | with: | ||
| 168 | usesh: true | 175 | usesh: true | ||