8000 Ensure GNU grep is used on macOS · devlooped/oss@964caa3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 964caa3

Browse files
committed
Ensure GNU grep is used on macOS
1 parent 8bc16a7 commit 964caa3

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,18 @@ jobs:
5454
- name: 🙏 build
5555
run: dotnet build -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
5656

57+
- name: ⚙ GNU grep
58+
if: matrix.os == 'macOS-latest'
59+
run: |
60+
brew install grep
61+
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
62+
5763
- name: 🧪 test
5864
shell: bash --noprofile --norc {0}
5965
env:
6066
LC_ALL: en_US.utf8
6167
run: |
68+
[ -f .bash_profile ] && source .bash_profile
6269
counter=0
6370
exitcode=0
6471
reset="\e[0m"

.github/workflows/publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,18 @@ jobs:
2424
- name: 🙏 build
2525
run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v}
2626

27+
- name: ⚙ GNU grep
28+
if: matrix.os == 'macOS-latest'
29+
run: |
30+
brew install grep
31+
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
32+
2733
- name: 🧪 test
2834
shell: bash --noprofile --norc {0}
2935
env:
3036
LC_ALL: en_US.utf8
3137
run: |
38+
[ -f .bash_profile ] && source .bash_profile
3239
counter=0
3340
exitcode=0
3441
reset="\e[0m"

0 commit comments

Comments
 (0)
0