Skip to content

Commit

Permalink
Fixed links in libp2p_networking CI
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorKoenders committed Mar 7, 2022
1 parent b4e40de commit 16438e4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build_libp2p_networking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@ jobs:
uses: actions-rs/clippy-check@v1
with:
token: ${{ github.token }}
args: --manifest-path libp2p-networking/Cargo.toml

- name: Audit
uses: actions-rs/audit-check@v1
with:
token: ${{ github.token }}
# Does not work with a nested dir
# - name: Audit
# uses: actions-rs/audit-check@v1
# with:
# token: ${{ github.token }}

- name: Cargo Build
run: cargo build --release
run: cargo build --release --manifest-path libp2p-networking/Cargo.toml

- name: Cargo Test
run: cargo test --verbose --release test_stress -- -Zunstable-options --report-time --test-threads=1
run: cargo test --verbose --release test_stress --manifest-path libp2p-networking/Cargo.toml -- -Zunstable-options --report-time --test-threads=1
29 changes: 15 additions & 14 deletions .github/workflows/coverage_libp2p_networking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,20 @@ jobs:
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'

- name: Install grcov
run: |
wget -O grcov.tar.gz https://github.com/mozilla/grcov/releases/download/v0.8.2/grcov-linux-x86_64.tar.bz2
tar -xvf grcov.tar.gz
sudo mv -v grcov /home/runner/.cargo/bin/
rm -rv grcov.tar.gz
# TODO: Seems like we can't override the path where grcov runs, so we're currently code coveraging the main repo
# - name: Install grcov
# run: |
# wget -O grcov.tar.gz https://github.com/mozilla/grcov/releases/download/v0.8.2/grcov-linux-x86_64.tar.bz2
# tar -xvf grcov.tar.gz
# sudo mv -v grcov /home/runner/.cargo/bin/
# rm -rv grcov.tar.gz

- name: Run Coverage Tool (grcov)
uses: actions-rs/[email protected]
id: coverage
# - name: Run Coverage Tool (grcov)
# uses: actions-rs/[email protected]
# id: coverage

- name: Coveralls upload
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ steps.coverage.outputs.report }}
# - name: Coveralls upload
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: ${{ steps.coverage.outputs.report }}

0 comments on commit 16438e4

Please sign in to comment.