@@ -277,30 +277,42 @@ jobs:
277277
278278 build_windows_x86_64 :
279279 runs-on : windows-latest
280+ defaults :
281+ run :
282+ shell : msys2 {0}
280283 steps :
281284 - uses : actions/checkout@v4
282285 with :
283286 submodules : true
284287 - uses : actions/setup-go@v5
285288 with :
286289 go-version : ' 1.25.0'
287- - run : echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> $GITHUB_ENV
288- - run : choco install wget make hashdeep --ignore-checksums
289- - run : wget --no-check-certificate http://www.openal-soft.org/openal-binaries/openal-soft-1.21.0-bin.zip
290- - run : wget https://github.com/electron/rcedit/releases/download/v1.1.1/rcedit-x64.exe
291- - run : curl -L -o mingw64.zip https://github.com/brechtsanders/winlibs_mingw/releases/download/13.2.0posix-17.0.6-11.0.1-ucrt-r5/winlibs-x86_64-posix-seh-gcc-13.2.0-llvm-17.0.6-mingw-w64ucrt-11.0.1-r5.zip
292- - run : unzip mingw64.zip
293- - run : 7z x openal-soft-1.21.0-bin.zip -o/c/
294- - run : echo "CGO_CFLAGS=-I/c/openal-soft-1.21.0-bin/include/" >> $GITHUB_ENV
295- - run : echo "CGO_LDFLAGS=-L/c/openal-soft-1.21.0-bin/libs/Win64/" >> $GITHUB_ENV
296- - run : cp "mingw64/bin/libwinpthread-1.dll" .
297- - run : cp /c/openal-soft-1.21.0-bin/bin/Win64/soft_oal.dll OpenAL32.dll
290+ - uses : msys2/setup-msys2@v2
291+ with :
292+ msystem : UCRT64
293+ update : true
294+ path-type : inherit
295+ install : >-
296+ mingw-w64-ucrt-x86_64-toolchain
297+ mingw-w64-ucrt-x86_64-openal
298+ make
299+ p7zip
300+ mingw-w64-ucrt-x86_64-rcedit
301+ - run : echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> "$GITHUB_ENV"
302+ - run : cp /ucrt64/bin/rcedit.exe ./rcedit-x64
303+ - run : cp /ucrt64/lib/libopenal.dll.a ./libOpenAL32.dll.a
304+ - run : echo "CGO_LDFLAGS=-L$PWD" >> "$GITHUB_ENV"
305+ - run : cp /ucrt64/bin/libgcc_s_seh-1.dll .
306+ - run : cp /ucrt64/bin/libmysofa.dll .
307+ - run : cp /ucrt64/bin/libopenal-1.dll .
308+ - run : cp /ucrt64/bin/libstdc++-6.dll .
309+ - run : cp /ucrt64/bin/libwinpthread-1.dll .
310+ - run : cp /ucrt64/bin/zlib1.dll .
298311 - run : cp /c/Windows/System32/VCRUNTIME140.dll .
299- - run : PATH="/c/mingw64/bin:$PATH"
300312 - run : mkdir -p ./Ludo-Windows-x86_64-${VERSION}/
301313 - run : cp *.dll ./Ludo-Windows-x86_64-${VERSION}/
302314 - run : OS=Windows ARCH=x86_64 VERSION=$VERSION make zip
303- - run : hashdeep -c sha256 Ludo-Windows-x86_64-${VERSION}.zip > Ludo-Windows-x86_64-${VERSION}.zip.sha256
315+ - run : sha256sum Ludo-Windows-x86_64-${VERSION}.zip > Ludo-Windows-x86_64-${VERSION}.zip.sha256
304316
305317 - name : Upload Release Asset
306318 uses : alexellis/upload-assets@0.2.2
0 commit comments