From eedea1d2dec0ffdac83cb7531e87bccf1f1afa9d Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 20 Aug 2020 18:00:14 +0200 Subject: [PATCH] Update windows.yml --- .github/workflows/windows.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index d2cc709d5..dbcb12e12 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/setup-msbuild@v1.0.1 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