Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit c284b71

Browse files
committed
Run libm-cdylib tests; add OSX test jobs
1 parent 371839b commit c284b71

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

azure-pipelines.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,23 @@ jobs:
4040
x86_64:
4141
TARGET: x86_64-unknown-linux-gnu
4242

43+
- job: OSX
44+
pool:
45+
vmImage: macos-10.13
46+
steps:
47+
- template: ci/azure-install-rust.yml
48+
- bash: |
49+
rustup target add $TARGET
50+
sh ./ci/run.sh $TARGET
51+
strategy:
52+
matrix:
53+
i686-apple-darwin:
54+
TARGET: i686-apple-darwin
55+
TOOLCHAIN: nightly
56+
x86_64-apple-darwin:
57+
TARGET: x86_64-apple-darwin
58+
TOOLCHAIN: nightly
59+
4360
- job: wasm
4461
pool:
4562
vmImage: ubuntu-16.04

ci/run.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env sh
22

33
set -ex
44
TARGET=$1
@@ -9,3 +9,11 @@ cargo test --target $TARGET --release
99
cargo test --features 'checked musl-reference-tests' --target $TARGET
1010

1111
cargo test --features 'checked musl-reference-tests' --target $TARGET --release
12+
13+
if [ "$TARGET" = "x86_64-unknown-linux-gnu" ] || [ "${TARGET}" = "x86_64-apple-darwin" ]; then
14+
(
15+
cd crates/libm-cdylib
16+
cargo test
17+
cargo test --release
18+
)
19+
fi

0 commit comments

Comments
 (0)