Skip to content

Commit de1e43e

Browse files
authored
Use gcc included in Windows image for release build (#22)
* 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 * Use bash shell for Windows * Download LZ4 CLI for Windows build
1 parent 9ece12a commit de1e43e

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

.github/workflows/build-all-and-publish.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,6 @@ jobs:
156156
submodules: true
157157
fetch-depth: 0
158158

159-
- name: Setup MSYS2 with Mingw-w64
160-
uses: msys2/setup-msys2@v2
161-
with:
162-
update: true
163-
install: >-
164-
base-devel
165-
mingw-w64-x86_64-gcc
166-
mingw-w64-x86_64-lz4
167-
168159
- name: Setup Zulu JDK 7
169160
uses: actions/setup-java@v5
170161
with:
@@ -177,8 +168,22 @@ jobs:
177168
java-version: '21'
178169
cache: maven
179170

180-
- name: Build (mvn verify) using MSYS2 shell
181-
shell: msys2 {0}
171+
# See LZ4FrameIOStreamTest
172+
- name: Download LZ4 CLI for tests
173+
shell: powershell
174+
run: |
175+
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
176+
mkdir lz4-cli
177+
tar -x -v -f lz4_win64.zip -C lz4-cli lz4.exe
178+
echo "$(Get-Location)\lz4-cli" >> "$env:GITHUB_PATH"
179+
rm lz4_win64.zip
180+
# Separate step because the change to PATH (through GITHUB_PATH) is not visible in the step which modified it
181+
# See https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands#adding-a-system-path
182+
- name: Check LZ4 CLI
183+
run: lz4 -V
184+
185+
- name: Build (mvn verify)
186+
shell: bash
182187
run: |
183188
./mvnw -B -V \
184189
-Darch.id=amd64 \

0 commit comments

Comments
 (0)