Skip to content

Commit 7fe5e09

Browse files
committed
Force gsed use on Mac
1 parent 81ff9eb commit 7fe5e09

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 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: |
@@ -49,7 +51,9 @@ runs:
4951
- name: Generate C Bindings
5052
shell: bash
5153
run: |
52-
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
54+
# Alias sed as gsed, if applicable
55+
export PATH="/tmp/gnu-bin:$PATH"
56+
5357
pushd ${{ inputs.destination }}/ldk-c-bindings
5458
if [ "$RUNNER_OS" == "macOS" ]; then
5559
./genbindings.sh ../rust-lightning true skip-tests

0 commit comments

Comments
 (0)