.github/workflow add tests for GOARCH=386

Closes #2097
This commit is contained in:
Hajime Hoshi 2022-05-20 18:36:44 +09:00
parent eec5ea00ec
commit 8941aea249

View File

@ -106,6 +106,23 @@ jobs:
run: | run: |
go test -tags=example ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v ./... 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) - name: go test (Wasm)
# TODO: Investigate times out on Windows. (#1313) # TODO: Investigate times out on Windows. (#1313)
if: ${{ !startsWith(matrix.os, 'windows-') && !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') }} if: ${{ !startsWith(matrix.os, 'windows-') && !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') }}