Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cargo-c to metrics #37

Merged
merged 1 commit into from
Nov 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 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,28 @@ 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: 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