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 e39c250
Show file tree
Hide file tree
Showing 10 changed files with 601 additions and 87 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: ci

on:
pull_request:
push:
branches:
- master
push:
pull_request:
branches:
- master

Expand Down Expand Up @@ -37,6 +37,29 @@ 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 clean
cargo cinstall --all-features \
--prefix=$HOME/av_metrics_deploy
- name: Build cargo-c tests
run: |
export PKG_CONFIG_PATH=$HOME/av_metrics_deploy/lib/pkgconfig
cd av_metrics/c-example
gcc test.c -o test `pkg-config --static --cflags --libs av_metrics`
- name: Run tests
run: |
export LD_LIBRARY_PATH=$HOME/av_metrics_deploy/lib/
cd av_metrics/c-example
./test
build:
strategy:
matrix:
Expand Down
Loading

0 comments on commit e39c250

Please sign in to comment.