Skip to content

Commit fe29b71

Browse files
Berrysoftnagisa
authored andcommitted
ci: add msys2 path to make gcc find the right ld
1 parent 76a62e0 commit fe29b71

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/libloading.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ jobs:
7979
release: false
8080
install: gcc
8181
- run: echo "INPUT(libmsys-2.0.a)" | Out-File -FilePath "C:\msys64\usr\lib\libcygwin.a"
82-
- run: cargo test --target x86_64-pc-cygwin -Zbuild-std
82+
- run: |
83+
$env:PATH = "C:\msys64\usr\bin\;$env:PATH"
84+
cargo test --target x86_64-pc-cygwin -Zbuild-std
8385
env:
84-
CARGO_TARGET_X86_64_PC_CYGWIN_LINKER: C:\msys64\usr\bin\x86_64-pc-msys-gcc.exe
86+
CARGO_TARGET_X86_64_PC_CYGWIN_LINKER: x86_64-pc-msys-gcc.exe
8587
8688
bare-cross-build:
8789
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)