Skip to content

Commit

Permalink
Fix testing cross compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Apr 19, 2022
1 parent c2af6bf commit bd03b3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ jobs:
override: true
components: llvm-tools-preview

- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
with:
platform: x64

- name: Run cargo clean
run: |
cargo clean
Expand Down
2 changes: 1 addition & 1 deletion coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ for project in example-project example-workspace; do
target/debug/cargo-cinstall cinstall --manifest-path=${project}/Cargo.toml --destdir=/tmp/staging
target/debug/cargo-cinstall cinstall clean --manifest-path=${project}/Cargo.toml

target/debug/cargo-cinstall cinstall --manifest-path=${project}/Cargo.toml --destdir=/tmp/staging-win --target=x86_64-pc-windows-gnu
target/debug/cargo-cinstall cinstall --manifest-path=${project}/Cargo.toml --destdir=/tmp/staging-win --target=x86_64-pc-windows-gnu --dlltool=x86_64-w64-mingw32-dlltool
done

grcov . --binary-path target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov

0 comments on commit bd03b3a

Please sign in to comment.