Skip to content

Commit a831678

Browse files
committed
More azure config fixes
1 parent 344e352 commit a831678

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# `libm`
22

3+
[![Build Status](https://dev.azure.com/rust-lang/libm/_apis/build/status/rust-lang-nursery.libm?branchName=master)](https://dev.azure.com/rust-lang/libm/_build/latest?definitionId=7&branchName=master)
4+
35
A port of [MUSL]'s libm to Rust.
46

57
[MUSL]: https://www.musl-libc.org/

azure-pipelines.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ jobs:
88
steps:
99
- template: ci/azure-install-rust.yml
1010
- bash: rustup target add $TARGET
11+
displayName: "add cross target"
12+
- bash: rustup target add x86_64-unknown-linux-musl
13+
displayName: "add musl target"
1114
- bash: cargo generate-lockfile && ./ci/run-docker.sh $TARGET
15+
displayName: "run tests"
1216
strategy:
1317
matrix:
1418
aarch64:
@@ -47,18 +51,23 @@ jobs:
4751
displayName: "Build for wasm"
4852
- script: cargo build --target wasm32-unknown-unknown --no-default-features
4953
displayName: "Build for wasm (no default features)"
54+
variables:
55+
TOOLCHAIN: nightly
5056

5157
- job: rustfmt
5258
pool:
5359
vmImage: ubuntu-16.04
5460
steps:
5561
- template: ci/azure-install-rust.yml
5662
- bash: rustup component add rustfmt
63+
displayName: "install rustfmt"
5764
- bash: cargo fmt --all -- --check
65+
displayName: "check formatting"
5866

5967
- job: compiler_builtins_works
6068
pool:
6169
vmImage: ubuntu-16.04
6270
steps:
6371
- template: ci/azure-install-rust.yml
6472
- bash: cargo build -p cb
73+
displayName: "Check compiler-builtins still probably builds"

ci/run-docker.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ run() {
2222
-v `pwd`/target:/target \
2323
-v `pwd`:/checkout:ro \
2424
-v `rustc --print sysroot`:/rust:ro \
25+
--init \
2526
-w /checkout \
2627
$target \
27-
sh -c "HOME=/tmp PATH=\$PATH:/rust/bin ci/run.sh $target"
28+
sh -c "HOME=/tmp PATH=\$PATH:/rust/bin exec ci/run.sh $target"
2829
}
2930

3031
if [ -z "$1" ]; then

ci/run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
set -ex
44
TARGET=$1
55

6-
cargo build --target $TARGET
76
cargo test --target $TARGET
8-
cargo build --target $TARGET --release
97
cargo test --target $TARGET --release
108

11-
cargo test --features 'checked musl-reference-tests' --target $TARGET
9+
# FIXME(#4) overflow checks in non-release currently cause issues
10+
#cargo test --features 'checked musl-reference-tests' --target $TARGET
11+
1212
cargo test --features 'checked musl-reference-tests' --target $TARGET --release

0 commit comments

Comments
 (0)