mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
ci: run tests for 32-bit architectures
This commit introduces a 32-bit test run to our Linux CI in an attempt to detect architecture dependent bugs earlier. I was forced to install the i386 packages in a build step becuase they can only be added after enabling the architecture. Also GOARCH=386 does not support the race detector, so I'm not running the tests with race detection enabled for that GOARCH. Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
+7
-1
@@ -3,6 +3,7 @@ image: debian/testing
|
|||||||
packages:
|
packages:
|
||||||
- curl
|
- curl
|
||||||
- pkg-config
|
- pkg-config
|
||||||
|
- gcc-multilib
|
||||||
- libwayland-dev
|
- libwayland-dev
|
||||||
- libx11-dev
|
- libx11-dev
|
||||||
- libx11-xcb-dev
|
- libx11-xcb-dev
|
||||||
@@ -24,11 +25,11 @@ packages:
|
|||||||
- scrot
|
- scrot
|
||||||
- sway
|
- sway
|
||||||
- grim
|
- grim
|
||||||
- wine
|
|
||||||
- unzip
|
- unzip
|
||||||
sources:
|
sources:
|
||||||
- https://git.sr.ht/~eliasnaur/gio
|
- https://git.sr.ht/~eliasnaur/gio
|
||||||
environment:
|
environment:
|
||||||
|
PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig/:/usr/lib/i386-linux-gnu/pkgconfig/
|
||||||
PATH: /home/build/sdk/go/bin:/usr/bin:/home/build/go/bin:/home/build/android/tools/bin
|
PATH: /home/build/sdk/go/bin:/usr/bin:/home/build/go/bin:/home/build/android/tools/bin
|
||||||
ANDROID_SDK_ROOT: /home/build/android
|
ANDROID_SDK_ROOT: /home/build/android
|
||||||
android_sdk_tools_zip: sdk-tools-linux-3859397.zip
|
android_sdk_tools_zip: sdk-tools-linux-3859397.zip
|
||||||
@@ -56,9 +57,14 @@ tasks:
|
|||||||
- mirror: |
|
- mirror: |
|
||||||
# mirror to github
|
# mirror to github
|
||||||
ssh-keyscan github.com > "$HOME"/.ssh/known_hosts && cd gio && git push --mirror "$github_mirror" || echo "failed mirroring"
|
ssh-keyscan github.com > "$HOME"/.ssh/known_hosts && cd gio && git push --mirror "$github_mirror" || echo "failed mirroring"
|
||||||
|
- add_32bit_arch: |
|
||||||
|
sudo dpkg --add-architecture i386
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y "libwayland-dev:i386" "libx11-dev:i386" "libx11-xcb-dev:i386" "libxkbcommon-dev:i386" "libxkbcommon-x11-dev:i386" "libgles2-mesa-dev:i386" "libegl1-mesa-dev:i386" "libffi-dev:i386" "libvulkan-dev:i386" "libxcursor-dev:i386"
|
||||||
- test_gio: |
|
- test_gio: |
|
||||||
cd gio
|
cd gio
|
||||||
go test -race ./...
|
go test -race ./...
|
||||||
|
CGO_ENABLED=1 GOARCH=386 go test ./...
|
||||||
GOOS=windows go test -exec=wine ./...
|
GOOS=windows go test -exec=wine ./...
|
||||||
GOOS=js GOARCH=wasm go build -o /dev/null ./...
|
GOOS=js GOARCH=wasm go build -o /dev/null ./...
|
||||||
- install_chrome: |
|
- install_chrome: |
|
||||||
|
|||||||
Reference in New Issue
Block a user