From 44c195c0b22f653f9f3d0ad89f789df06b35dbb5 Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Tue, 4 Mar 2025 10:51:09 +0100 Subject: [PATCH] ci: make sure gpatch is actually being used for tests on MacOS --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97434f0..8343add 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,9 @@ jobs: - uses: dtolnay/rust-toolchain@stable - name: install GNU patch on MacOS if: runner.os == 'macOS' - run: brew install gpatch + run: | + brew install gpatch + echo "/opt/homebrew/opt/gpatch/libexec/gnubin" >> "$GITHUB_PATH" - name: set up PATH on Windows # Needed to use GNU's patch.exe instead of Strawberry Perl patch if: runner.os == 'Windows' @@ -111,7 +113,9 @@ jobs: - run: rustup component add llvm-tools-preview - name: install GNU patch on MacOS if: runner.os == 'macOS' - run: brew install gpatch + run: | + brew install gpatch + echo "/opt/homebrew/opt/gpatch/libexec/gnubin" >> "$GITHUB_PATH" - name: set up PATH on Windows # Needed to use GNU's patch.exe instead of Strawberry Perl patch if: runner.os == 'Windows'