10 Commits

Author SHA1 Message Date
Brian Smith
6314cc7fff CI/CD: Gather code coverage.
Gather code review data to help guide the code review process. This is currently limited
to i686 and x86_64 Linux because these are the targets I could get working. More
investigation is needed to figure out how to collect coverage data for ARM targets.
2020-11-25 16:29:43 -08:00
Linus Unnebäck
db664fad58 CI/CD: Use qemu_* variables consistently in mk/cargo.sh. 2020-11-24 14:55:06 -08:00
Brian Smith
7bac725679 Allow cross-compiling to *-linux-musl (except x86_64) w/o a sysroot.
Avoid requiring a sysroot for *-linux-musl targets when using Clang.

Add one AAarch64 and one 32-bit ARM MUSL target to GitHub Actions.

Use Rust 1.48's `-Clink-self-contained=yes` in CI for musl targets.

Support the non-default variants of the *-musl targets.
2020-11-24 09:22:50 -08:00
Brian Smith
0b3cf2df06 CI/CD: When using Clang for non-Android targets, always use Clang 10.
It seems that on GitHub Actions Clang 6.0 is the default.
2020-11-23 23:05:51 -08:00
Brian Smith
09b6052a1c CI/CD: Don't put Android's tools in $PATH for non-Android targets.
Android has its own `clang`, `llvm-ar`, etc., and if they are in `$PATH` then
they might accidentally get used when it isn't intended for them to be used.

As part of this, reduce the environment variables that are set to (almost) only
the ones needed for the given target. An exception is wasm32-unknown-unknown,
which has its variables set even regardless of whether "wasm32_c" is used.
2020-11-23 23:05:51 -08:00
Brian Smith
ab27f3fe1c CI/CD: use the correct ar for each target. 2020-11-23 19:42:06 -08:00
Brian Smith
617cb54caa CI/CD: Fix typo in i686-unknown-linux-musl linker setting.
The linker wasn't getting overridden but things still worked because the system
linker works fine in this case.
2020-11-23 19:42:06 -08:00
Brian Smith
9ddb7667b3 CI/CD: Group entries in mk/cargo.sh correctly.
The blank lines were not in the right place to group the related
variables sensibly. Fix that.
2020-11-23 19:42:06 -08:00
Brian Smith
d12e36fec5 Move wasm32-unknown-unknown support to cargo.sh.
Make it easier to build and test the wasm32-unknown-unknown target locally.
2020-11-17 08:17:16 -08:00
Brian Smith
fbe6562c22 Build: Make it easier to run the same configuration locally that is used in CI. 2020-11-13 12:46:38 -08:00