Skip to content

Commit

Permalink
Workaround for missing libs on freebsd 13
Browse files Browse the repository at this point in the history
Update codecov.yml

Update coveralls.yml
  • Loading branch information
fabiojmendes committed Mar 4, 2022
1 parent 1d6bc9e commit 4b10fdf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
RUSTFLAGS: '-Zinstrument-coverage'
LLVM_PROFILE_FILE: 'rust-libzfs-%p-%m.profraw'

- run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.bz2 | tar jxf -
- run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf -
- run: ./grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
- run: bash <(curl -s https://codecov.io/bash) -f lcov.info
- name: Run codacy-coverage-reporter
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
CARGO_INCREMENTAL: '0'
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'
- run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.bz2 | tar jxf -
- run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf -
- run: zip -0 ccov.zip `find . \( -name "*.gc*" \) -print`
- run: ./grcov ccov.zip -s . -t lcov --llvm --branch --ignore-not-existing --ignore "/*" -o lcov.info
- name: Archive code coverage results
Expand Down
1 change: 1 addition & 0 deletions zfs-core-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,6 @@ fn main() {
println!("cargo:rustc-link-lib=nvpair");
if target_os == "freebsd" {
println!("cargo:rustc-link-lib=dylib:-as-needed=zutil");
println!("cargo:rustc-link-lib=dylib:-as-needed=spl");
}
}

0 comments on commit 4b10fdf

Please sign in to comment.