Skip to content

Commit

Permalink
Use pkgconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 committed Nov 18, 2019
1 parent 1140055 commit 71f98c3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,19 @@ jobs:
run: cargo test --all-features
- name: Generate docs
run: cargo doc --all-features --no-deps
- name: Run cargo-c
- name: Install cargo-c
if: matrix.platform == 'ubuntu-latest'
run: |
cargo install cargo-c
cargo cinstall --prefix=/usr --destdir=.
- name: Run cargo-c
if: matrix.platform == 'ubuntu-latest'
run: |
rm -rf $GITHUB_WORKSPACE/target
cargo cinstall --prefix=$GITHUB_WORKSPACE/av_metrics_deploy
- name: Run cargo-c tests
if: matrix.platform == 'ubuntu-latest'
run: |
export PKG_CONFIG_PATH=$GITHUB_WORKSPACE/av_metrics_deploy/lib/pkgconfig
cd av_metrics/c-example
gcc -o test test.c \
-I../../usr/include/av_metrics -L../../usr/lib/ \
-Wl,-Bstatic -lav_metrics -Wl,-Bdynamic -lm -ldl -lpthread
gcc `pkg-config --cflags --libs av_metrics` test.c -o test
./test

0 comments on commit 71f98c3

Please sign in to comment.