.github/workflows: clean up test.yml (#301)
- commit
- 398077311e87fe4247a32396d0fb89e04e23a6c4
- author
- Hajime Hoshi · · 2025-03-09 05:10 UTC
- committer
- GitHub · · 2025-03-09 05:10 UTC
- parent
- 1bd362f
- signature
- GPG Unverified
B5690EEEBB952194The key is unknown
2 files · +5 -8
M .github/scripts/bsd_tests.sh +2 -2
| @@ -3,8 +3,8 @@ | |||
| 3 | 3 | # SPDX-License-Identifier: Apache-2.0 | |
| 4 | 4 | # SPDX-FileCopyrightText: 2025 The Ebitengine Authors | |
| 5 | 5 | ||
| 6 | - | # FreeBSD & NetBSD tests run within QEMU on Ubuntu. | |
| 7 | - | # vmactions/freebsd-vm only supports a single "step" where it | |
| 6 | + | # BSD tests run within QEMU on Ubuntu. | |
| 7 | + | # vmactions/*-vm only supports a single "step" where it | |
| 8 | 8 | # brings down the VM at the end of the step, so all | |
| 9 | 9 | # the commands to run need to be put into this single block. | |
| 10 | 10 | ||
| @@ -3,8 +3,8 @@ | |||||
| 3 | # SPDX-License-Identifier: Apache-2.0 | 3 | # SPDX-License-Identifier: Apache-2.0 | ||
| 4 | # SPDX-FileCopyrightText: 2025 The Ebitengine Authors | 4 | # SPDX-FileCopyrightText: 2025 The Ebitengine Authors | ||
| 5 | 5 | ||||
| 6 | - | # FreeBSD & NetBSD tests run within QEMU on Ubuntu. | 6 | + | # BSD tests run within QEMU on Ubuntu. |
| 7 | - | # vmactions/freebsd-vm only supports a single "step" where it | 7 | + | # vmactions/*-vm only supports a single "step" where it |
| 8 | # brings down the VM at the end of the step, so all | 8 | # brings down the VM at the end of the step, so all | ||
| 9 | # the commands to run need to be put into this single block. | 9 | # the commands to run need to be put into this single block. | ||
| 10 | 10 | ||||
M .github/workflows/test.yml +3 -6
| @@ -142,7 +142,7 @@ jobs: | |||
| 142 | 142 | strategy: | |
| 143 | 143 | matrix: | |
| 144 | 144 | os: ['FreeBSD', 'NetBSD'] | |
| 145 | - | go: ['1.18.10', '1.19.13', '1.20.14', '1.21.13', '1.22.12', '1.23.6', '1.24.0'] | |
| 145 | + | go: ['1.18.10', '1.19.13', '1.20.14', '1.21.13', '1.22.12', '1.23.7', '1.24.1'] | |
| 146 | 146 | name: Test with Go ${{ matrix.go }} on ${{ matrix.os }} | |
| 147 | 147 | runs-on: ubuntu-22.04 | |
| 148 | 148 | defaults: | |
| @@ -150,7 +150,7 @@ jobs: | |||
| 150 | 150 | shell: bash | |
| 151 | 151 | steps: | |
| 152 | 152 | - uses: actions/checkout@v4 | |
| 153 | - | - name: Run in freebsd | |
| 153 | + | - name: Run in FreeBSD | |
| 154 | 154 | if: matrix.os == 'FreeBSD' | |
| 155 | 155 | uses: vmactions/freebsd-vm@v1 | |
| 156 | 156 | with: | |
| @@ -158,20 +158,17 @@ jobs: | |||
| 158 | 158 | prepare: | | |
| 159 | 159 | fetch https://go.dev/dl/go${{matrix.go}}.freebsd-amd64.tar.gz | |
| 160 | 160 | rm -fr /usr/local/go && tar -C /usr/local -xf go${{matrix.go}}.freebsd-amd64.tar.gz | |
| 161 | - | ln -s /usr/local/go/bin/go /usr/local/bin | |
| 162 | 161 | chmod +x $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | |
| 163 | 162 | run: $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | |
| 164 | - | - name: Run in netbsd | |
| 163 | + | - name: Run in NetBSD | |
| 165 | 164 | # there are no prebuilt download links for these versions of Go for NetBSD | |
| 166 | 165 | if: matrix.os == 'NetBSD' && !startsWith(matrix.go, '1.18.') && !startsWith(matrix.go, '1.19.') && !startsWith(matrix.go, '1.20.') | |
| 167 | 166 | uses: vmactions/netbsd-vm@v1 | |
| 168 | 167 | with: | |
| 169 | 168 | usesh: true | |
| 170 | 169 | prepare: | | |
| 171 | - | /usr/sbin/pkg_add -v bash | |
| 172 | 170 | ftp https://go.dev/dl/go${{matrix.go}}.netbsd-amd64.tar.gz | |
| 173 | 171 | mkdir /usr/local | |
| 174 | 172 | rm -fr /usr/local/go && tar -C /usr/local -xf go${{matrix.go}}.netbsd-amd64.tar.gz | |
| 175 | - | ln -s /usr/local/go/bin/go /usr/local/bin | |
| 176 | 173 | chmod +x $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | |
| 177 | 174 | run: $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | |
| @@ -142,7 +142,7 @@ jobs: | |||||
| 142 | strategy: | 142 | strategy: | ||
| 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.6', '1.24.0'] | 145 | + | go: ['1.18.10', '1.19.13', '1.20.14', '1.21.13', '1.22.12', '1.23.7', '1.24.1'] |
| 146 | name: Test with Go ${{ matrix.go }} on ${{ matrix.os }} | 146 | name: Test with Go ${{ matrix.go }} on ${{ matrix.os }} | ||
| 147 | runs-on: ubuntu-22.04 | 147 | runs-on: ubuntu-22.04 | ||
| 148 | defaults: | 148 | defaults: | ||
| @@ -150,7 +150,7 @@ jobs: | |||||
| 150 | shell: bash | 150 | shell: bash | ||
| 151 | steps: | 151 | steps: | ||
| 152 | - uses: actions/checkout@v4 | 152 | - uses: actions/checkout@v4 | ||
| 153 | - | - name: Run in freebsd | 153 | + | - name: Run in FreeBSD |
| 154 | if: matrix.os == 'FreeBSD' | 154 | if: matrix.os == 'FreeBSD' | ||
| 155 | uses: vmactions/freebsd-vm@v1 | 155 | uses: vmactions/freebsd-vm@v1 | ||
| 156 | with: | 156 | with: | ||
| @@ -158,20 +158,17 @@ jobs: | |||||
| 158 | prepare: | | 158 | prepare: | | ||
| 159 | fetch https://go.dev/dl/go${{matrix.go}}.freebsd-amd64.tar.gz | 159 | fetch https://go.dev/dl/go${{matrix.go}}.freebsd-amd64.tar.gz | ||
| 160 | rm -fr /usr/local/go && tar -C /usr/local -xf go${{matrix.go}}.freebsd-amd64.tar.gz | 160 | rm -fr /usr/local/go && tar -C /usr/local -xf go${{matrix.go}}.freebsd-amd64.tar.gz | ||
| 161 | - | ln -s /usr/local/go/bin/go /usr/local/bin | |||
| 162 | chmod +x $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | 161 | chmod +x $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | ||
| 163 | run: $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | 162 | run: $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | ||
| 164 | - | - name: Run in netbsd | 163 | + | - name: Run in NetBSD |
| 165 | # there are no prebuilt download links for these versions of Go for NetBSD | 164 | # there are no prebuilt download links for these versions of Go for NetBSD | ||
| 166 | if: matrix.os == 'NetBSD' && !startsWith(matrix.go, '1.18.') && !startsWith(matrix.go, '1.19.') && !startsWith(matrix.go, '1.20.') | 165 | if: matrix.os == 'NetBSD' && !startsWith(matrix.go, '1.18.') && !startsWith(matrix.go, '1.19.') && !startsWith(matrix.go, '1.20.') | ||
| 167 | uses: vmactions/netbsd-vm@v1 | 166 | uses: vmactions/netbsd-vm@v1 | ||
| 168 | with: | 167 | with: | ||
| 169 | usesh: true | 168 | usesh: true | ||
| 170 | prepare: | | 169 | prepare: | | ||
| 171 | - | /usr/sbin/pkg_add -v bash | |||
| 172 | ftp https://go.dev/dl/go${{matrix.go}}.netbsd-amd64.tar.gz | 170 | ftp https://go.dev/dl/go${{matrix.go}}.netbsd-amd64.tar.gz | ||
| 173 | mkdir /usr/local | 171 | mkdir /usr/local | ||
| 174 | rm -fr /usr/local/go && tar -C /usr/local -xf go${{matrix.go}}.netbsd-amd64.tar.gz | 172 | rm -fr /usr/local/go && tar -C /usr/local -xf go${{matrix.go}}.netbsd-amd64.tar.gz | ||
| 175 | - | ln -s /usr/local/go/bin/go /usr/local/bin | |||
| 176 | chmod +x $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | 173 | chmod +x $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | ||
| 177 | run: $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | 174 | run: $GITHUB_WORKSPACE/.github/scripts/bsd_tests.sh | ||