build: Disable 32-bit Windows due to crashing Go compiler

This commit is contained in:
Felicitas Pojtinger
2021-12-26 16:49:32 +01:00
parent 95ba3d7cdc
commit 2f2a92e4bd
2 changed files with 13 additions and 13 deletions

View File

@@ -24,12 +24,12 @@ jobs:
flags: -e '--privileged'
cmd: ./Hydrunfile windows x86_64
dst: out/*
- id: stfs-windows-i686
src: .
os: fedora:rawhide
flags: -e '--privileged'
cmd: ./Hydrunfile windows i686
dst: out/*
# - id: stfs-windows-i686
# src: .
# os: fedora:rawhide
# flags: -e '--privileged'
# cmd: ./Hydrunfile windows i686
# dst: out/*
steps:
- name: Maximize build space

View File

@@ -23,18 +23,18 @@ if [ "$1" = "windows" ]; then
cp -rf . ~/.wine/drive_c/users/root/Documents/stfs
mkdir -p ~/.wine/drive_c/users/root/go
if [ "$2" = "x86_64" ]; then
# Install GCC and Go
wine64 bash.exe -c 'pacman --verbose --debug --noconfirm --ignore pacman --needed -S base-devel mingw-w64-x86_64-gcc mingw-w64-x86_64-go'
# Build
wine64 bash.exe -c 'export PATH="$PATH:/mingw64/bin" && cd /c/users/root/Documents/stfs && export GOPATH="/c/users/root/go" && export GOROOT="/mingw64/lib/go" export GOARCH=amd64 && go build -o out/stfs.windows-x86_64.exe ./cmd/stfs'
else
if [ "$2" = "i686" ]; then
# Install GCC and Go
wine64 bash.exe -c 'pacman --verbose --debug --noconfirm --ignore pacman --needed -S base-devel mingw-w64-i686-gcc mingw-w64-i686-go'
# Build
wine64 bash.exe -c 'export PATH="$PATH:/mingw32/bin" && cd /c/users/root/Documents/stfs && export GOPATH="/c/users/root/go" && export GOROOT="/mingw32/lib/go" && export GOARCH=386 && go build -o out/stfs.windows-i686.exe ./cmd/stfs'
else
# Install GCC and Go
wine64 bash.exe -c 'pacman --verbose --debug --noconfirm --ignore pacman --needed -S base-devel mingw-w64-x86_64-gcc mingw-w64-x86_64-go'
# Build
wine64 bash.exe -c 'export PATH="$PATH:/mingw64/bin" && cd /c/users/root/Documents/stfs && export GOPATH="/c/users/root/go" && export GOROOT="/mingw64/lib/go" export GOARCH=amd64 && go build -o out/stfs.windows-x86_64.exe ./cmd/stfs'
fi
# Copy binaries to staging directory