-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9ca6c0
commit a7d2faa
Showing
3 changed files
with
31 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ on: | |
|
||
env: | ||
VALGRINDFLAGS: --show-reachable=no --show-possibly-lost=no --fair-sched=yes | ||
RUSTFLAGS: -D warnings | ||
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
|
@@ -21,29 +22,32 @@ jobs: | |
submodules: true | ||
- name: Setup | ||
run: | | ||
curl -L --proto '=https' --tlsv1.2 -sSf -O https://sourceware.org/pub/valgrind/valgrind-3.23.0.tar.bz2 | ||
tar -xf valgrind-3.23.0.tar.bz2 | ||
rm valgrind-3.23.0.tar.bz2 | ||
cd valgrind-3.23.0 | ||
./configure | ||
sudo make install -j $(nproc) & | ||
sudo apt install -y libc6-dbg & | ||
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash & | ||
rustup update & | ||
.github/workflows/install_valgrind & | ||
.github/workflows/install_test_deps & | ||
wait | ||
cargo binstall -y cargo-valgrind cargo-llvm-cov | ||
- name: Check & Lint | ||
run: RUSTFLAGS="-D warnings" cargo clippy --all-targets && cargo clippy -r --all-targets | ||
run: | | ||
cargo clippy --all-targets | ||
cargo clippy -r --all-targets | ||
- name: Test debug build | ||
run: cd tests && cargo test --tests && cargo valgrind test --tests | ||
run: | | ||
cd tests | ||
cargo test --tests --all-targets | ||
cargo valgrind test --tests --all-targets | ||
- name: Test release build | ||
run: cd tests && cargo test -r --tests && cargo valgrind test -r --tests | ||
run: | | ||
cd tests | ||
cargo test -r --tests --all-targets | ||
cargo valgrind test -r --tests --all-targets | ||
- name: Generate test coverage | ||
run: cd tests && cargo llvm-cov --codecov --output-path codecov.json --disable-default-ignore-filename-regex --ignore-filename-regex \(.cargo/registry\|rustc\) | ||
run: | | ||
cd tests | ||
cargo llvm-cov --codecov --output-path codecov.json \ | ||
--disable-default-ignore-filename-regex \ | ||
--ignore-filename-regex \(.cargo/registry\|rustc\) | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
curl -L --proto '=https' --tlsv1.2 -sSf \ | ||
https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh \ | ||
| bash | ||
cargo binstall -y cargo-valgrind cargo-llvm-cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
curl -L --proto '=https' --tlsv1.2 -sSf -O https://sourceware.org/pub/valgrind/valgrind-3.23.0.tar.bz2 | ||
tar -xf valgrind-3.23.0.tar.bz2 | ||
rm valgrind-3.23.0.tar.bz2 | ||
cd valgrind-3.23.0 | ||
./configure | ||
sudo make install -j $(nproc) |