Skip to content

Commit

Permalink
[#1] ci: add Windows 32-bit build workflow
Browse files Browse the repository at this point in the history
Build Win32 DLL
  • Loading branch information
lmichaelis authored Jun 12, 2024
2 parents 33afd54 + 5107f7c commit e136409
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- vendor/**
- support/*.cmake
- CMakeLists.txt
- .github/workflows/build.yml
jobs:
linux:
name: "Linux"
Expand Down Expand Up @@ -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'

0 comments on commit e136409

Please sign in to comment.