From de13e18457ce296c55084c555b0481753a522ef3 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 10 Oct 2025 16:29:09 +0200 Subject: [PATCH] CI --- .github/workflows/artifacts.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index d62297a..fdd61db 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -58,18 +58,35 @@ jobs: - name: Build libcodex (Linux) if: runner.os == 'Linux' && steps.cache-libcodex.outputs.cache-hit != 'true' run: | - CODEX_LIB_PARAMS="-d:LeopardCmakeFlags=\"-DCMAKE_POSITION_INDEPENDENT_CODE=ON\"" make libcodex + CODEX_LIB_PARAMS='-d:LeopardCmakeFlags="\"-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release\""' make libcodex - name: Build libcodex (macOS) - if: runner.os == 'macos-latest' && steps.cache-libcodex.outputs.cache-hit != 'true' + if: runner.os == 'macOS' && steps.cache-libcodex.outputs.cache-hit != 'true' run: | - CODEX_LIB_PARAMS="-d:LeopardCmakeFlags=\"-DCMAKE_POSITION_INDEPENDENT_CODE=ON\"" make libcodex + CODEX_LIB_PARAMS='-d:LeopardCmakeFlags="\"-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release\""' make libcodex + + - name: MSYS2 (Windows amd64) + if: matrix.os == 'windows-latest' && matrix.cpu == 'amd64' + uses: msys2/setup-msys2@v2 + with: + path-type: inherit + msystem: UCRT64 + install: >- + base-devel + git + mingw-w64-x86_64-cmake + mingw-w64-x86_64-ntldd-git + mingw-w64-x86_64-rust + mingw-w64-x86_64-toolchain - name: Build libcodex (Windows) if: matrix.os == 'windows-latest' && steps.cache-libcodex.outputs.cache-hit != 'true' shell: msys2 {0} run: | - CODEX_LIB_PARAMS="-d:LeopardCmakeFlags=\"-DCMAKE_POSITION_INDEPENDENT_CODE=ON\"" make libcodex + pacman -Sy --noconfirm make + git config --global core.symlinks false + make update + CODEX_LIB_PARAMS='-d:LeopardCmakeFlags="\"-DCMAKE_POSITION_INDEPENDENT_CODE=ON -G \\\"Unix Makefiles\\\" -DCMAKE_BUILD_TYPE=Release\""' make libcodex - name: Package artifacts (Linux/macOS) if: matrix.os != 'windows-latest' @@ -103,7 +120,7 @@ jobs: # publish-release: # needs: build - # runs-on: ubuntu-latest-22.04 + # runs-on: ubuntu-22.04 # steps: # - uses: actions/download-artifact@v4 # with: