summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/windows.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index d2cc709d..dbcb12e1 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -20,6 +20,7 @@ jobs:
bits: 32
ARCH: "i686"
COMPILER_PATH: "C:\\msys64\\mingw32\\bin"
+ WINDRES_ARCH: pe-i386
- compiler: mingw-w64
bits: 64
ARCH: "x86_64"
@@ -35,6 +36,7 @@ jobs:
env:
RELEASE_NAME: raylib-3.1_win${{ matrix.bits }}_${{ matrix.compiler }}
+ GNUTARGET: default
steps:
- name: Checkout
@@ -56,14 +58,14 @@ jobs:
uses: microsoft/[email protected]
if: matrix.compiler == 'msvc16'
- # TODO: Compile resource file raylib.dll.rc for linkage on raylib.dll generation
- name: Build Library (MinGW-w64)
run: |
cd src
set PATH=%PATH%;${{ matrix.COMPILER_PATH }}
${{ matrix.ARCH }}-w64-mingw32-gcc.exe -v
+ ${{ matrix.COMPILER_PATH }}/windres.exe -h
make PLATFORM=PLATFORM_DESKTOP CC=${{ matrix.ARCH }}-w64-mingw32-gcc.exe RAYLIB_LIBTYPE=STATIC RAYLIB_RELEASE_PATH="../build/${{ env.RELEASE_NAME }}/lib"
- windres raylib.dll.rc -o raylib.dll.rc.data --target=pe-${{ matrix.ARCH }}
+ ${{ matrix.COMPILER_PATH }}/windres.exe -i raylib.dll.rc -o raylib.dll.rc.data -O coff --target=pe-${{ matrix.ARCH }}
make PLATFORM=PLATFORM_DESKTOP CC=${{ matrix.ARCH }}-w64-mingw32-gcc.exe RAYLIB_LIBTYPE=SHARED RAYLIB_RELEASE_PATH="../build/${{ env.RELEASE_NAME }}/lib" -B
cd ..
shell: cmd