mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
Support build on non Linux platforms
cargo config 1. MUSL is no longer the default target. This allows building on Mac and Windows. 2. On Linux, code coverage compiler options are supplied by default. pre-commit, pre-push - Coverage is turned on only on Linux - clippy is run on all platforms github - MUSL build is tested to ensure that stand alone executables can be created Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
committed by
Anand Krishnamoorthi
parent
608f1592e8
commit
e93b33ea05
@@ -6,7 +6,7 @@ set -eo pipefail
|
||||
|
||||
if [ -f Cargo.toml ]; then
|
||||
# Ensure that all targets can be built.
|
||||
scripts/coverage --no-run
|
||||
cargo build --all-targets
|
||||
|
||||
#Ensure that code is correctly formatted.
|
||||
cargo fmt --check || (echo "Run cargo fmt to fix formatting" && exit 1)
|
||||
|
||||
Reference in New Issue
Block a user