From 2a3f9ff39e7aabfb2a1bf95a47e8fac9a184e1d1 Mon Sep 17 00:00:00 2001 From: Marcono1234 Date: Sat, 6 Dec 2025 16:15:35 +0100 Subject: [PATCH 1/3] Use gcc included in Windows image for release build See https://github.com/actions/runner-images/blob/win25/20251125.122/images/windows/Windows2025-Readme.md#tools --- .github/workflows/build-all-and-publish.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/build-all-and-publish.yml b/.github/workflows/build-all-and-publish.yml index 74c2583..7f812d3 100644 --- a/.github/workflows/build-all-and-publish.yml +++ b/.github/workflows/build-all-and-publish.yml @@ -155,15 +155,6 @@ jobs: submodules: true fetch-depth: 0 - - name: Setup MSYS2 with Mingw-w64 - uses: msys2/setup-msys2@v2 - with: - update: true - install: >- - base-devel - mingw-w64-x86_64-gcc - mingw-w64-x86_64-lz4 - - name: Setup Zulu JDK 7 uses: actions/setup-java@v5 with: @@ -176,8 +167,7 @@ jobs: java-version: '21' cache: maven - - name: Build (mvn verify) using MSYS2 shell - shell: msys2 {0} + - name: Build (mvn verify) run: | ./mvnw -B -V \ -Darch.id=amd64 \ From 26d0cf442bf0e4e671b48390254304549f0676b1 Mon Sep 17 00:00:00 2001 From: Marcono1234 Date: Sat, 6 Dec 2025 16:29:59 +0100 Subject: [PATCH 2/3] Use bash shell for Windows --- .github/workflows/build-all-and-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-all-and-publish.yml b/.github/workflows/build-all-and-publish.yml index 7f812d3..db2e6ad 100644 --- a/.github/workflows/build-all-and-publish.yml +++ b/.github/workflows/build-all-and-publish.yml @@ -168,6 +168,7 @@ jobs: cache: maven - name: Build (mvn verify) + shell: bash run: | ./mvnw -B -V \ -Darch.id=amd64 \ From ed95d1a9ea74a9b25b86a483b5c7b4aa7a272bc1 Mon Sep 17 00:00:00 2001 From: Marcono1234 Date: Mon, 8 Dec 2025 17:11:02 +0100 Subject: [PATCH 3/3] Download LZ4 CLI for Windows build --- .github/workflows/build-all-and-publish.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build-all-and-publish.yml b/.github/workflows/build-all-and-publish.yml index 6288bd3..a386008 100644 --- a/.github/workflows/build-all-and-publish.yml +++ b/.github/workflows/build-all-and-publish.yml @@ -168,6 +168,20 @@ jobs: java-version: '21' cache: maven + # See LZ4FrameIOStreamTest + - name: Download LZ4 CLI for tests + shell: powershell + run: | + curl.exe --fail-with-body --no-progress-meter --output lz4_win64.zip --location https://github.com/lz4/lz4/releases/download/v1.10.0/lz4_win64_v1_10_0.zip + mkdir lz4-cli + tar -x -v -f lz4_win64.zip -C lz4-cli lz4.exe + echo "$(Get-Location)\lz4-cli" >> "$env:GITHUB_PATH" + rm lz4_win64.zip + # Separate step because the change to PATH (through GITHUB_PATH) is not visible in the step which modified it + # See https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands#adding-a-system-path + - name: Check LZ4 CLI + run: lz4 -V + - name: Build (mvn verify) shell: bash run: |