Skip to content

Commit 7d530c2

Browse files
committed
Switch to 32-bit Windows binary
- Added conditional to set environment variables to force 32-bit architecture build - 32-bit Windows version doesn't have the slow Cgame init issue
1 parent 7fcddc4 commit 7d530c2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build-packages.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
release:
4949
- file: release-linux-x86_64
5050
name: Linux64
51-
- file: release-mingw32-x86_64
51+
- file: release-mingw32-x86
5252
name: Windows32
5353
platform: mingw32
5454

@@ -81,6 +81,13 @@ jobs:
8181
- name: platform
8282
if: ${{ matrix.release.platform }}
8383
run: echo "PLATFORM="${{ matrix.release.PLATFORM }} >> $GITHUB_ENV
84+
- name: Windows32
85+
if: ${{ matrix.release.name == 'Windows32' }}
86+
run: |
87+
dpkg --add-architecture i386
88+
echo "CC=i686-w64-mingw32-gcc" >> $GITHUB_ENV
89+
echo "CXX=i686-w64-mingw32-g++" >> $GITHUB_ENV
90+
echo "ARCH=x86" >> $GITHUB_ENV
8491
- name: make
8592
run: USE_RESTCLIENT=1 USE_INTERNAL_LUA=1 USE_CURL_DLOPEN=0 make -j
8693
- name: extract pak

0 commit comments

Comments
 (0)