Skip to content

Commit 96690ec

Browse files
authored
Migrate from azure pipelines to Github actions (#226)
Should make user management easier and also helps follow the repository when it's renamed.
1 parent a6b427e commit 96690ec

File tree

4 files changed

+68
-110
lines changed

4 files changed

+68
-110
lines changed

libm/.github/workflows/main.yml

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
docker:
6+
name: Docker
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
target:
11+
- aarch64-unknown-linux-gnu
12+
- arm-unknown-linux-gnueabi
13+
- arm-unknown-linux-gnueabihf
14+
- armv7-unknown-linux-gnueabihf
15+
- i686-unknown-linux-gnu
16+
- mips-unknown-linux-gnu
17+
- mips64-unknown-linux-gnuabi64
18+
- mips64el-unknown-linux-gnuabi64
19+
- powerpc-unknown-linux-gnu
20+
- powerpc64-unknown-linux-gnu
21+
- powerpc64le-unknown-linux-gnu
22+
- x86_64-unknown-linux-gnu
23+
steps:
24+
- uses: actions/checkout@master
25+
- name: Install Rust
26+
run: rustup update nightly && rustup default nightly
27+
- run: rustup target add ${{ matrix.target }}
28+
- run: rustup target add x86_64-unknown-linux-musl
29+
- run: cargo generate-lockfile
30+
- run: ./ci/run-docker.sh ${{ matrix.target }}
31+
32+
rustfmt:
33+
name: Rustfmt
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@master
37+
- name: Install Rust
38+
run: rustup update stable && rustup default stable && rustup component add rustfmt
39+
- run: cargo fmt -- --check
40+
41+
wasm:
42+
name: WebAssembly
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@master
46+
- name: Install Rust
47+
run: rustup update nightly && rustup default nightly
48+
- run: rustup target add wasm32-unknown-unknown
49+
- run: cargo build --target wasm32-unknown-unknown
50+
51+
cb:
52+
name: "The compiler-builtins crate works"
53+
runs-on: ubuntu-latest
54+
steps:
55+
- uses: actions/checkout@master
56+
- name: Install Rust
57+
run: rustup update nightly && rustup default nightly
58+
- run: cargo build -p cb
59+
60+
benchmarks:
61+
name: Benchmarks
62+
runs-on: ubuntu-latest
63+
steps:
64+
- uses: actions/checkout@master
65+
- name: Install Rust
66+
run: rustup update nightly && rustup default nightly
67+
- run: cargo bench --all

libm/README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
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-
53
A port of [MUSL]'s libm to Rust.
64

75
[MUSL]: https://www.musl-libc.org/
@@ -27,7 +25,7 @@ The API documentation can be found [here](https://docs.rs/libm).
2725
## Benchmark
2826
[benchmark]: #benchmark
2927

30-
The benchmarks are located in `crates/libm-bench` and require a nightly Rust toolchain.
28+
The benchmarks are located in `crates/libm-bench` and require a nightly Rust toolchain.
3129
To run all benchmarks:
3230

3331
> cargo +nightly bench --all

libm/azure-pipelines.yml

-82
This file was deleted.

libm/ci/azure-install-rust.yml

-25
This file was deleted.

0 commit comments

Comments
 (0)