Skip to content

Commit

Permalink
Fix LD_LIBRARY_PATH when working dir isn't top level (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga authored Mar 30, 2023
1 parent 290ecd0 commit fd00fc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:

- run: go run mage.go benchall
env:
LD_LIBRARY_PATH: ./buildtools/aho-corasick/target/release
LD_LIBRARY_PATH: ${{ github.workspace }}/buildtools/aho-corasick/target/release

- run: go run mage.go wafbenchall
env:
LD_LIBRARY_PATH: ./buildtools/aho-corasick/target/release
LD_LIBRARY_PATH: ${{ github.workspace }}/buildtools/aho-corasick/target/release

- uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- run: go run mage.go check
env:
WASI_TEST_MODE: ${{ matrix.mode }}
LD_LIBRARY_PATH: ${{ startsWith(matrix.os, 'ubuntu-') && matrix.mode == 'cgo' && './buildtools/aho-corasick/target/release' || '' }}
LD_LIBRARY_PATH: ${{ startsWith(matrix.os, 'ubuntu-') && matrix.mode == 'cgo' && format('{0}/{1}', github.workspace, '/buildtools/aho-corasick/target/release') || '' }}

# Runs tests using wazero inside a minimal golang docker image. This makes sure the code builds
# even when there is no C toolchain available. It is possible for code to work fine with CGO_ENABLED=0
Expand Down

0 comments on commit fd00fc9

Please sign in to comment.