Skip to content

Commit 00a5c0b

Browse files
authored
Merge pull request #57 from oSoMoN/windows-fix-path-for-ci
CI: On Windows, use GNU's patch.exe instead of Strawberry Perl patch
2 parents 5669f16 + bf10464 commit 00a5c0b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
steps:
2929
- uses: actions/checkout@v4
3030
- uses: dtolnay/rust-toolchain@stable
31+
- name: set up PATH on Windows
32+
# Needed to use GNU's patch.exe instead of Strawberry Perl patch
33+
if: runner.os == 'Windows'
34+
run: echo "C:\Program Files\Git\usr\bin" >> $env:GITHUB_PATH
3135
- run: cargo test
3236

3337
fmt:
@@ -103,6 +107,10 @@ jobs:
103107
104108
- name: rust toolchain ~ install
105109
uses: dtolnay/rust-toolchain@nightly
110+
- name: set up PATH on Windows
111+
# Needed to use GNU's patch.exe instead of Strawberry Perl patch
112+
if: runner.os == 'Windows'
113+
run: echo "C:\Program Files\Git\usr\bin" >> $env:GITHUB_PATH
106114
- name: Test
107115
run: cargo test ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} --no-fail-fast
108116
env:

0 commit comments

Comments
 (0)