Skip to content

Commit

Permalink
Split cargo-c tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 committed Nov 18, 2019
1 parent 71f98c3 commit 0031de3
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,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=$GITHUB_WORKSPACE/av_metrics_deploy
- name: Run cargo-c tests
run: |
export PKG_CONFIG_PATH=$GITHUB_WORKSPACE/av_metrics_deploy/lib/pkgconfig
cd av_metrics/c-example
gcc `pkg-config --cflags --libs av_metrics` test.c -o test
./test
build:
strategy:
matrix:
Expand All @@ -51,19 +70,3 @@ jobs:
run: cargo test --all-features
- name: Generate docs
run: cargo doc --all-features --no-deps
- name: Install cargo-c
if: matrix.platform == 'ubuntu-latest'
run: |
cargo install cargo-c
- 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 `pkg-config --cflags --libs av_metrics` test.c -o test
./test

0 comments on commit 0031de3

Please sign in to comment.