Attempting to fix Windows build.
h3rald h3rald@h3rald.com
Sun, 04 Feb 2024 10:51:26 +0100
1 files changed,
25 insertions(+),
5 deletions(-)
M
.github/workflows/add-artifacts-to-current-release.yml
→
.github/workflows/add-artifacts-to-current-release.yml
@@ -40,6 +40,21 @@ - name: install musl-gcc
run: sudo apt-get install -y musl-tools if: matrix.os == 'ubuntu-latest' + - name: Setup Msys2 + if: matrix.os == 'windows-latest' + uses: msys2/setup-msys2@v2 + with: + msystem: MINGW64 + release: true + update: true + path-type: inherit + install: >- + base-devel + autotools + mingw-w64-x86_64-perl-locale-maketext + mingw-w64-x86_64-toolchain + mingw-w64-x86_64-autotools + # Sets path (Linux, macOS) - name: Update $PATH run: echo "$HOME/.nimble/bin" >> $GITHUB_PATH@@ -58,13 +73,18 @@ sh init.sh -y
# Build for Linux - name: Build (Linux) - run: nimble build -y -d:release --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc -d:ssl -d:useOpenSsl3 --opt:size + run: nimble build -y -d:release --gcc.exe:musl-gcc --mm:refc --gcc.linkerexe:musl-gcc -d:ssl -d:useOpenSsl3 --opt:size if: matrix.os == 'ubuntu-latest' - # Build for macOS/Windows - - name: Build (macOS, Windows) - run: nimble build -y -d:release -d:ssl -d:useOpenSsl3 --opt:size - if: matrix.os == 'macos-latest' || matrix.os == 'windows-latest' + # Build for macOS + - name: Build (macOS) + run: nimble build -y -d:release -d:ssl -d:useOpenSsl3 --opt:size --mm:refc + if: matrix.os == 'macos-latest' + + # Build for Windows + - name: Build (Windows) + run: nimble build -y -d:release -d:useOpenSsl3 --opt:size --mm:refc --opt:size -d:ssl --gcc.exe:x86_64-w64-mingw32-gcc --gcc.linkerexe:x86_64-w64-mingw32-gcc + if: matrix.os == 'windows-latest' # UPX compress (*nix) - name: UPX