From 5107f7cc4893f75678bb13399bdf8d105389b477 Mon Sep 17 00:00:00 2001 From: 3DJ <71472458+ThreeDeeJay@users.noreply.github.com> Date: Wed, 12 Jun 2024 01:57:00 -0400 Subject: [PATCH] Build Win32 DLL --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7d2fd0d..4e15781 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,7 @@ on: - vendor/** - support/*.cmake - CMakeLists.txt + - .github/workflows/build.yml jobs: linux: name: "Linux" @@ -96,3 +97,36 @@ jobs: with: name: 'Windows x86-64 DLL' path: 'build/dmusic.dll' + windows-32: + name: "Windows (32-bit)" + runs-on: 'windows-latest' + defaults: + run: + shell: 'msys2 {0}' + steps: + - uses: 'actions/checkout@v3' + with: + submodules: 'recursive' + - name: 'Install MinGW' + uses: 'msys2/setup-msys2@v2' + with: + msystem: 'mingw32' + update: true + install: >- + git + make + pacboy: >- + toolchain:p + cmake:p + ninja:p + - name: 'Configure' + run: 'cmake -B build -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release' + - name: 'Build' + run: 'cmake --build build --config Release -j 2' + - name: 'Rename Artifact' + run: 'mv build/libdmusic.dll build/dmusic.dll' + - name: 'Publish Library' + uses: 'actions/upload-artifact@v3' + with: + name: 'Windows i386 DLL' + path: 'build/dmusic.dll'