More azure config fixes
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# `libm`
|
||||
|
||||
[](https://dev.azure.com/rust-lang/libm/_build/latest?definitionId=7&branchName=master)
|
||||
|
||||
A port of [MUSL]'s libm to Rust.
|
||||
|
||||
[MUSL]: https://www.musl-libc.org/
|
||||
|
||||
@@ -8,7 +8,11 @@ jobs:
|
||||
steps:
|
||||
- template: ci/azure-install-rust.yml
|
||||
- bash: rustup target add $TARGET
|
||||
displayName: "add cross target"
|
||||
- bash: rustup target add x86_64-unknown-linux-musl
|
||||
displayName: "add musl target"
|
||||
- bash: cargo generate-lockfile && ./ci/run-docker.sh $TARGET
|
||||
displayName: "run tests"
|
||||
strategy:
|
||||
matrix:
|
||||
aarch64:
|
||||
@@ -47,6 +51,8 @@ jobs:
|
||||
displayName: "Build for wasm"
|
||||
- script: cargo build --target wasm32-unknown-unknown --no-default-features
|
||||
displayName: "Build for wasm (no default features)"
|
||||
variables:
|
||||
TOOLCHAIN: nightly
|
||||
|
||||
- job: rustfmt
|
||||
pool:
|
||||
@@ -54,7 +60,9 @@ jobs:
|
||||
steps:
|
||||
- template: ci/azure-install-rust.yml
|
||||
- bash: rustup component add rustfmt
|
||||
displayName: "install rustfmt"
|
||||
- bash: cargo fmt --all -- --check
|
||||
displayName: "check formatting"
|
||||
|
||||
- job: compiler_builtins_works
|
||||
pool:
|
||||
@@ -62,3 +70,4 @@ jobs:
|
||||
steps:
|
||||
- template: ci/azure-install-rust.yml
|
||||
- bash: cargo build -p cb
|
||||
displayName: "Check compiler-builtins still probably builds"
|
||||
|
||||
+2
-1
@@ -22,9 +22,10 @@ run() {
|
||||
-v `pwd`/target:/target \
|
||||
-v `pwd`:/checkout:ro \
|
||||
-v `rustc --print sysroot`:/rust:ro \
|
||||
--init \
|
||||
-w /checkout \
|
||||
$target \
|
||||
sh -c "HOME=/tmp PATH=\$PATH:/rust/bin ci/run.sh $target"
|
||||
sh -c "HOME=/tmp PATH=\$PATH:/rust/bin exec ci/run.sh $target"
|
||||
}
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
set -ex
|
||||
TARGET=$1
|
||||
|
||||
cargo build --target $TARGET
|
||||
cargo test --target $TARGET
|
||||
cargo build --target $TARGET --release
|
||||
cargo test --target $TARGET --release
|
||||
|
||||
cargo test --features 'checked musl-reference-tests' --target $TARGET
|
||||
# FIXME(#4) overflow checks in non-release currently cause issues
|
||||
#cargo test --features 'checked musl-reference-tests' --target $TARGET
|
||||
|
||||
cargo test --features 'checked musl-reference-tests' --target $TARGET --release
|
||||
|
||||
Reference in New Issue
Block a user