Update add-artifacts-to-current-releases.yml
Fabio Cevasco h3rald@h3rald.com
Sun, 20 Oct 2024 11:18:55 +0200
1 files changed,
27 insertions(+),
7 deletions(-)
M
.github/workflows/add-artifacts-to-current-releases.yml
→
.github/workflows/add-artifacts-to-current-releases.yml
@@ -53,6 +53,21 @@ echo "${GITHUB_WORKSPACE}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append if: matrix.os == 'windows-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 + # Install the Nim compiler and dependencies - name: Install Nim and deps run: |@@ -61,22 +76,27 @@ sh init.sh -y
# Build for Linux - name: Build (Linux) - run: nimble build -y -d:release --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc --mm:refc --opt:size + run: nimble build -y -d:release --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc --mm:refc --opt:size -d:ssl if: matrix.os == 'ubuntu-latest' - # Build for macOS/Windows - - name: Build (macOS, Windows) - run: nimble build -y -d:release --opt:size --mm:refc - if: matrix.os == 'macos-13' || matrix.os == 'windows-latest' + # Build for macOS + - name: Build (macOs) + run: nimble build -y -d:release --opt:size --mm:refc -d:ssl + if: matrix.os == 'macos-13' + + # Build for Windows + - name: Build (Windows) + run: nimble build -v -y -d:release --mm:refc --opt:size -d:ssl --gcc.exe:x86_64-w64-mingw32-gcc --gcc.linkerexe:x86_64-w64-mingw32-gcc + if: matrix.os == matrix.os == 'windows-latest' - # UPX compress (*nix) + # UPX compress (Linux) - name: UPX uses: svenstaro/upx-action@v2 with: files: | hastysite args: --best --force - if: matrix.os == 'macos-13' || matrix.os == 'ubuntu-latest' + if: matrix.os == 'ubuntu-latest' # UPX compress (Windows) - name: UPX