Skip to content

Commit

Permalink
Merge pull request #144 from robinst/jv-ld-library-path
Browse files Browse the repository at this point in the history
  • Loading branch information
robinst authored Apr 16, 2024
2 parents de92ab5 + 40de297 commit c6f788c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ jobs:
run: TAGLIB_DIR=$PWD/tmp/$PLATFORM/taglib-$TAGLIB_VERSION bundle exec rake compile

- name: Run Tests (taglib-ruby)
run: LD_LIBRARY_PATH=$PWD/tmp/$PLATFORM/taglib-$TAGLIB_VERSION/lib bundle exec rake test
run: bundle exec rake test
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,14 @@ Build a specific version of Taglib:
The above command will automatically download Taglib 1.11.1, build it and
install it in `tmp/x86_64-linux/taglib-1.11.1`.

The `swig` and `compile` tasks can then be executed against that specific
The `swig`, `compile` and `test` tasks can then be executed against that specific
version of Taglib by setting the `TAGLIB_DIR` environment variable to
`$PWD/tmp/x86_64-linux/taglib-1.11.1` (it is assumed that taglib headers are
located at `$TAGLIB_DIR/include` and taglib libraries at `$TAGLIB_DIR/lib`).

The `test` task can then be run for that version of Taglib by adding
`$PWD/tmp/x86_64-linux/taglib-1.11.1/lib` to the `LD_LIBRARY_PATH` environment
variable.

To do everything in one command:

PLATFORM=x86_64-linux TAGLIB_VERSION=1.11.1 TAGLIB_DIR=$PWD/tmp/x86_64-linux/taglib-1.11.1 LD_LIBRARY_PATH=$PWD/tmp/x86_64-linux/taglib-1.11.1/lib rake vendor compile test
PLATFORM=x86_64-linux TAGLIB_VERSION=1.11.1 TAGLIB_DIR=$PWD/tmp/x86_64-linux/taglib-1.11.1 rake vendor compile test

### Workflow

Expand Down

0 comments on commit c6f788c

Please sign in to comment.