Skip to content

Commit 44c195c

Browse files
committed
ci: make sure gpatch is actually being used for tests on MacOS
1 parent fdc6992 commit 44c195c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ jobs:
3030
- uses: dtolnay/rust-toolchain@stable
3131
- name: install GNU patch on MacOS
3232
if: runner.os == 'macOS'
33-
run: brew install gpatch
33+
run: |
34+
brew install gpatch
35+
echo "/opt/homebrew/opt/gpatch/libexec/gnubin" >> "$GITHUB_PATH"
3436
- name: set up PATH on Windows
3537
# Needed to use GNU's patch.exe instead of Strawberry Perl patch
3638
if: runner.os == 'Windows'
@@ -111,7 +113,9 @@ jobs:
111113
- run: rustup component add llvm-tools-preview
112114
- name: install GNU patch on MacOS
113115
if: runner.os == 'macOS'
114-
run: brew install gpatch
116+
run: |
117+
brew install gpatch
118+
echo "/opt/homebrew/opt/gpatch/libexec/gnubin" >> "$GITHUB_PATH"
115119
- name: set up PATH on Windows
116120
# Needed to use GNU's patch.exe instead of Strawberry Perl patch
117121
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)