.github/workflows: upgrade the FreeBSD VM version to v1 (#179)
- commit
- c9a29b27a668386fd9827192bd6101c2af0b8c5a
- author
- Hajime Hoshi · · 2023-11-19 18:14 UTC
- committer
- Hajime Hoshi · · 2023-11-19 18:15 UTC
- parent
- 930b664
- signature
- unsigned
1 file · +3 -3
M .github/workflows/test.yml +3 -3
| @@ -94,14 +94,14 @@ jobs: | |||
| 94 | 94 | matrix: | |
| 95 | 95 | go: ['1.18.10', '1.19.12', '1.20.7', '1.21.0'] | |
| 96 | 96 | name: Test with Go ${{ matrix.go }} on FreeBSD | |
| 97 | - | runs-on: macos-12 | |
| 97 | + | runs-on: ubuntu-22.04 | |
| 98 | 98 | defaults: | |
| 99 | 99 | run: | |
| 100 | 100 | shell: bash | |
| 101 | 101 | steps: | |
| 102 | 102 | - uses: actions/checkout@v3 | |
| 103 | 103 | - name: Run in freebsd | |
| 104 | - | uses: vmactions/freebsd-vm@v0 | |
| 104 | + | uses: vmactions/freebsd-vm@v1 | |
| 105 | 105 | with: | |
| 106 | 106 | usesh: true | |
| 107 | 107 | prepare: | | |
| @@ -109,7 +109,7 @@ jobs: | |||
| 109 | 109 | rm -fr /usr/local/go && tar -C /usr/local -xf go${{matrix.go}}.freebsd-amd64.tar.gz | |
| 110 | 110 | ln -s /usr/local/go/bin/go /usr/local/bin | |
| 111 | 111 | run: | | |
| 112 | - | # FreeBSD tests run within a virtualbox VM on macOS. | |
| 112 | + | # FreeBSD tests run within QEMU on Ubuntu. | |
| 113 | 113 | # vmactions/freebsd-vm only supports a single "step" where it | |
| 114 | 114 | # brings down the VM at the end of the step, so all | |
| 115 | 115 | # the commands to run need to be put into this single block. | |
| @@ -94,14 +94,14 @@ jobs: | |||||
| 94 | matrix: | 94 | matrix: | ||
| 95 | go: ['1.18.10', '1.19.12', '1.20.7', '1.21.0'] | 95 | go: ['1.18.10', '1.19.12', '1.20.7', '1.21.0'] | ||
| 96 | name: Test with Go ${{ matrix.go }} on FreeBSD | 96 | name: Test with Go ${{ matrix.go }} on FreeBSD | ||
| 97 | - | runs-on: macos-12 | 97 | + | runs-on: ubuntu-22.04 |
| 98 | defaults: | 98 | defaults: | ||
| 99 | run: | 99 | run: | ||
| 100 | shell: bash | 100 | shell: bash | ||
| 101 | steps: | 101 | steps: | ||
| 102 | - uses: actions/checkout@v3 | 102 | - uses: actions/checkout@v3 | ||
| 103 | - name: Run in freebsd | 103 | - name: Run in freebsd | ||
| 104 | - | uses: vmactions/freebsd-vm@v0 | 104 | + | uses: vmactions/freebsd-vm@v1 |
| 105 | with: | 105 | with: | ||
| 106 | usesh: true | 106 | usesh: true | ||
| 107 | prepare: | | 107 | prepare: | | ||
| @@ -109,7 +109,7 @@ jobs: | |||||
| 109 | rm -fr /usr/local/go && tar -C /usr/local -xf go${{matrix.go}}.freebsd-amd64.tar.gz | 109 | rm -fr /usr/local/go && tar -C /usr/local -xf go${{matrix.go}}.freebsd-amd64.tar.gz | ||
| 110 | ln -s /usr/local/go/bin/go /usr/local/bin | 110 | ln -s /usr/local/go/bin/go /usr/local/bin | ||
| 111 | run: | | 111 | run: | | ||
| 112 | - | # FreeBSD tests run within a virtualbox VM on macOS. | 112 | + | # FreeBSD tests run within QEMU on Ubuntu. |
| 113 | # vmactions/freebsd-vm only supports a single "step" where it | 113 | # vmactions/freebsd-vm only supports a single "step" where it | ||
| 114 | # brings down the VM at the end of the step, so all | 114 | # brings down the VM at the end of the step, so all | ||
| 115 | # the commands to run need to be put into this single block. | 115 | # the commands to run need to be put into this single block. | ||