.github/workflows: upgrade the FreeBSD VM version to v1 (#179)
- commit
- 908449fce958f6d1384b2031e3e81e11649ed29b
- author
- Hajime Hoshi · · 2023-11-19 18:14 UTC
- committer
- GitHub · · 2023-11-19 18:14 UTC
- parent
- 63c6fec
- signature
- GPG Unverified
4AEE18F83AFDEB23The key is unknown
1 file · +3 -3
M .github/workflows/test.yml +3 -3
| @@ -112,14 +112,14 @@ jobs: | |||
| 112 | 112 | matrix: | |
| 113 | 113 | go: ['1.18.10', '1.19.12', '1.20.7', '1.21.0'] | |
| 114 | 114 | name: Test with Go ${{ matrix.go }} on FreeBSD | |
| 115 | - | runs-on: macos-12 | |
| 115 | + | runs-on: ubuntu-22.04 | |
| 116 | 116 | defaults: | |
| 117 | 117 | run: | |
| 118 | 118 | shell: bash | |
| 119 | 119 | steps: | |
| 120 | 120 | - uses: actions/checkout@v3 | |
| 121 | 121 | - name: Run in freebsd | |
| 122 | - | uses: vmactions/freebsd-vm@v0 | |
| 122 | + | uses: vmactions/freebsd-vm@v1 | |
| 123 | 123 | with: | |
| 124 | 124 | usesh: true | |
| 125 | 125 | prepare: | | |
| @@ -127,7 +127,7 @@ jobs: | |||
| 127 | 127 | rm -fr /usr/local/go && tar -C /usr/local -xf go${{matrix.go}}.freebsd-amd64.tar.gz | |
| 128 | 128 | ln -s /usr/local/go/bin/go /usr/local/bin | |
| 129 | 129 | run: | | |
| 130 | - | # FreeBSD tests run within a virtualbox VM on macOS. | |
| 130 | + | # FreeBSD tests run within QEMU on Ubuntu. | |
| 131 | 131 | # vmactions/freebsd-vm only supports a single "step" where it | |
| 132 | 132 | # brings down the VM at the end of the step, so all | |
| 133 | 133 | # the commands to run need to be put into this single block. | |
| @@ -112,14 +112,14 @@ jobs: | |||||
| 112 | matrix: | 112 | matrix: | ||
| 113 | go: ['1.18.10', '1.19.12', '1.20.7', '1.21.0'] | 113 | go: ['1.18.10', '1.19.12', '1.20.7', '1.21.0'] | ||
| 114 | name: Test with Go ${{ matrix.go }} on FreeBSD | 114 | name: Test with Go ${{ matrix.go }} on FreeBSD | ||
| 115 | - | runs-on: macos-12 | 115 | + | runs-on: ubuntu-22.04 |
| 116 | defaults: | 116 | defaults: | ||
| 117 | run: | 117 | run: | ||
| 118 | shell: bash | 118 | shell: bash | ||
| 119 | steps: | 119 | steps: | ||
| 120 | - uses: actions/checkout@v3 | 120 | - uses: actions/checkout@v3 | ||
| 121 | - name: Run in freebsd | 121 | - name: Run in freebsd | ||
| 122 | - | uses: vmactions/freebsd-vm@v0 | 122 | + | uses: vmactions/freebsd-vm@v1 |
| 123 | with: | 123 | with: | ||
| 124 | usesh: true | 124 | usesh: true | ||
| 125 | prepare: | | 125 | prepare: | | ||
| @@ -127,7 +127,7 @@ jobs: | |||||
| 127 | rm -fr /usr/local/go && tar -C /usr/local -xf go${{matrix.go}}.freebsd-amd64.tar.gz | 127 | rm -fr /usr/local/go && tar -C /usr/local -xf go${{matrix.go}}.freebsd-amd64.tar.gz | ||
| 128 | ln -s /usr/local/go/bin/go /usr/local/bin | 128 | ln -s /usr/local/go/bin/go /usr/local/bin | ||
| 129 | run: | | 129 | run: | | ||
| 130 | - | # FreeBSD tests run within a virtualbox VM on macOS. | 130 | + | # FreeBSD tests run within QEMU on Ubuntu. |
| 131 | # vmactions/freebsd-vm only supports a single "step" where it | 131 | # vmactions/freebsd-vm only supports a single "step" where it | ||
| 132 | # brings down the VM at the end of the step, so all | 132 | # brings down the VM at the end of the step, so all | ||
| 133 | # the commands to run need to be put into this single block. | 133 | # the commands to run need to be put into this single block. | ||