diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0c37add0..5dbc759f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -38,24 +38,25 @@ jobs: path: bin/* tests: - runs-on: macos-latest # Only Mac runners support nested virt + runs-on: ubuntu-latest # The runner must support nested virt needs: build # Don't bother testing if cross arch build fails timeout-minutes: 30 steps: - uses: actions/checkout@v4 - - name: Install + - name: Install qemu run: | - brew install qemu - touch continue + sudo apt install qemu-kvm + sudo usermod -a -G kvm $USER - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.20.x + go-version: stable - name: Test - run: make test + run: | + sudo -s -u ${USER} bash -c 'make test' - uses: actions/upload-artifact@v4 if: always()