diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2a1e6b95e..a9f3b9298 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -106,6 +106,23 @@ jobs: run: | go test -tags=example ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v ./... + - name: go test (Linux 386) + # TODO: Add more test environments (#1305) + if: ${{ startsWith(matrix.os, 'ubuntu-') }} + run: | + sudo dpkg --add-architecture i386 + sudo apt-get update + sudo apt-get install gcc-multilib + sudo apt-get install libasound2-dev:i386 libgl1-mesa-dev:i386 libxcursor-dev:i386 libxi-dev:i386 libxinerama-dev:i386 libxrandr-dev:i386 libxxf86vm-dev:i386 + env CGO_ENABLED=1 GOARCH=386 go test -tags=example ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v ./... + + - name: go test (Windows 386) + # TODO: Add more test environments (#1305) + if: ${{ startsWith(matrix.os, 'windows-') }} + run: | + # TODO: Enable this after DirectX is supported on 32bit machines (#2088) + # env GOARCH=386 go test -tags=example ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v ./... + - name: go test (Wasm) # TODO: Investigate times out on Windows. (#1313) if: ${{ !startsWith(matrix.os, 'windows-') && !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') }}