Skip to content

Commit

Permalink
Add cargo-c to metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 committed Nov 27, 2019
1 parent afaa157 commit 6e24137
Show file tree
Hide file tree
Showing 9 changed files with 593 additions and 85 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,25 @@ jobs:
args: --all-features --tests --benches
name: lint

cargo-c:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install cargo-c
run: |
cargo install cargo-c
- name: Run cargo-c
run: |
cargo cinstall --all-features \
--prefix=$HOME/av_metrics_deploy
- name: Run cargo-c tests
run: |
export PKG_CONFIG_PATH=$HOME/av_metrics_deploy/lib/pkgconfig
cd av_metrics/c-example
gcc `pkg-config --static --cflags --libs av_metrics` test.c -o test
./test
build:
strategy:
matrix:
Expand Down
Loading

0 comments on commit 6e24137

Please sign in to comment.