Switch from mingw64 to ucrt64

This commit is contained in:
Yukun Guo
2024-09-18 15:28:00 +08:00
parent 0b174a7e8a
commit eaf8c333e0

View File

@ -1,4 +1,4 @@
name: Run tests on Windows
name: Run tests on Windows (MSYS2)
on:
workflow_dispatch:
@ -14,12 +14,12 @@ jobs:
- name: Install dependencies
shell: C:\msys64\usr\bin\bash.exe --login '{0}'
run: |
export PATH="/mingw64/bin:$PATH"
pacman --noconfirm -S mingw-w64-x86_64-imagemagick mingw-w64-x86_64-pkg-config
export PATH="/ucrt64/bin:$PATH"
pacman --noconfirm -S mingw-w64-ucrt-x86_64-imagemagick mingw-w64-ucrt-x86_64-pkg-config
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Test
run: |
$env:PATH = "C:\msys64\usr\bin;C:\msys64\mingw64\bin;$env:PATH"
cargo test -- --skip background --skip negate_image
$env:PATH = "C:\msys64\usr\bin;C:\msys64\ucrt64\bin;$env:PATH"
cargo test -- --skip test_set_background_color