Skip to content

Commit 9972952

Browse files
committed
Make gsed appear as sed on Mac
1 parent 9e2425c commit 9972952

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/actions/install-dependencies/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ runs:
1717
if: ${{ runner.os == 'macOS' }}
1818
run: |
1919
brew install gnu-sed
20+
mkdir -p /tmp/gnu-bin
21+
ln -s "$(command -v gsed)" /tmp/gnu-bin/sed
2022
- name: Checkout Rust-Lightning and LDK-C-Bindings git
2123
shell: bash
2224
run: |
@@ -62,7 +64,10 @@ runs:
6264
- name: Generate C Bindings
6365
shell: bash
6466
run: |
65-
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
67+
# Alias sed as gsed, if applicable
68+
# export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
69+
export PATH="/tmp/gnu-bin:$PATH"
70+
6671
pushd ${{ inputs.destination }}/ldk-c-bindings
6772
if [ "$RUNNER_OS" == "macOS" ]; then
6873
./genbindings.sh ../rust-lightning true skip-tests

0 commit comments

Comments
 (0)