Skip to content

Commit 1ac3970

Browse files
committed
Migrate to github actions from Azure Pipelines
Less need to manage users, more concurrency, and interface is all in one!
1 parent 0387545 commit 1ac3970

File tree

5 files changed

+146
-140
lines changed

5 files changed

+146
-140
lines changed

.github/workflows/main.yml

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
test:
6+
name: Test
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
target:
11+
- aarch64-unknown-linux-gnu
12+
- arm-unknown-linux-gnueabi
13+
- arm-unknown-linux-gnueabihf
14+
- i586-unknown-linux-gnu
15+
- i686-unknown-linux-gnu
16+
- mips-unknown-linux-gnu
17+
- mips64-unknown-linux-gnuabi64
18+
- mips64el-unknown-linux-gnuabi64
19+
- mipsel-unknown-linux-gnu
20+
- powerpc-unknown-linux-gnu
21+
- powerpc64-unknown-linux-gnu
22+
- powerpc64le-unknown-linux-gnu
23+
- thumbv6m-none-eabi
24+
- thumbv7em-none-eabi
25+
- thumbv7em-none-eabihf
26+
- thumbv7m-none-eabi
27+
- wasm32-unknown-unknown
28+
- x86_64-unknown-linux-gnu
29+
- x86_64-apple-darwin
30+
- i686-pc-windows-msvc
31+
- x86_64-pc-windows-msvc
32+
- i686-pc-windows-gnu
33+
- x86_64-pc-windows-gnu
34+
include:
35+
- target: aarch64-unknown-linux-gnu
36+
os: ubuntu-latest
37+
rust: nightly
38+
- target: arm-unknown-linux-gnueabi
39+
os: ubuntu-latest
40+
rust: nightly
41+
- target: arm-unknown-linux-gnueabihf
42+
os: ubuntu-latest
43+
rust: nightly
44+
- target: i586-unknown-linux-gnu
45+
os: ubuntu-latest
46+
rust: nightly
47+
- target: i686-unknown-linux-gnu
48+
os: ubuntu-latest
49+
rust: nightly
50+
- target: mips-unknown-linux-gnu
51+
os: ubuntu-latest
52+
rust: nightly
53+
- target: mips64-unknown-linux-gnuabi64
54+
os: ubuntu-latest
55+
rust: nightly
56+
- target: mips64el-unknown-linux-gnuabi64
57+
os: ubuntu-latest
58+
rust: nightly
59+
- target: mipsel-unknown-linux-gnu
60+
os: ubuntu-latest
61+
rust: nightly
62+
- target: powerpc-unknown-linux-gnu
63+
os: ubuntu-latest
64+
rust: nightly
65+
- target: powerpc64-unknown-linux-gnu
66+
os: ubuntu-latest
67+
rust: nightly
68+
- target: powerpc64le-unknown-linux-gnu
69+
os: ubuntu-latest
70+
rust: nightly
71+
- target: thumbv6m-none-eabi
72+
os: ubuntu-latest
73+
rust: nightly
74+
- target: thumbv7em-none-eabi
75+
os: ubuntu-latest
76+
rust: nightly
77+
- target: thumbv7em-none-eabihf
78+
os: ubuntu-latest
79+
rust: nightly
80+
- target: thumbv7m-none-eabi
81+
os: ubuntu-latest
82+
rust: nightly
83+
- target: wasm32-unknown-unknown
84+
os: ubuntu-latest
85+
rust: nightly
86+
- target: x86_64-unknown-linux-gnu
87+
os: ubuntu-latest
88+
rust: nightly
89+
- target: x86_64-apple-darwin
90+
os: macos-latest
91+
rust: nightly
92+
- target: i686-pc-windows-msvc
93+
os: windows-latest
94+
rust: nightly
95+
- target: x86_64-pc-windows-msvc
96+
os: windows-latest
97+
rust: nightly
98+
- target: i686-pc-windows-gnu
99+
os: windows-latest
100+
rust: nightly-i686-gnu
101+
- target: x86_64-pc-windows-gnu
102+
os: windows-latest
103+
rust: nightly-x86_64-gnu
104+
steps:
105+
- uses: actions/checkout@master
106+
with:
107+
submodules: true
108+
- name: Install Rust (rustup)
109+
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
110+
if: matrix.os != 'macos-latest'
111+
- name: Install Rust (macos)
112+
run: |
113+
curl https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
114+
echo "##[add-path]$HOME/.cargo/bin"
115+
if: matrix.os == 'macos-latest'
116+
- run: rustup target add ${{ matrix.target }}
117+
- name: Download compiler-rt reference sources
118+
run: |
119+
curl -L -o code.tar.gz https://github.com/rust-lang/llvm-project/archive/rustc/8.0-2019-03-18.tar.gz
120+
tar xzf code.tar.gz --strip-components 1 llvm-project-rustc-8.0-2019-03-18/compiler-rt
121+
echo "##[set-env name=RUST_COMPILER_RT_ROOT]./compiler-rt"
122+
shell: bash
123+
124+
# Non-linux tests just use our raw script
125+
- run: ./ci/run.sh ${{ matrix.target }}
126+
if: matrix.os != 'ubuntu-latest'
127+
shell: bash
128+
129+
# Wasm is special and is just build as a smoke test
130+
- run: cargo build --target ${{ matrix.target }}
131+
if: matrix.target == 'wasm32-unknown-unknown'
132+
133+
# Otherwise we use our docker containers to run builds
134+
- run: cargo generate-lockfile && ./ci/run-docker.sh ${{ matrix.target }}
135+
if: matrix.target != 'wasm32-unknown-unknown' && matrix.os == 'ubuntu-latest'
136+
137+
rustfmt:
138+
name: Rustfmt
139+
runs-on: ubuntu-latest
140+
steps:
141+
- uses: actions/checkout@master
142+
with:
143+
submodules: true
144+
- name: Install Rust
145+
run: rustup update stable && rustup default stable && rustup component add rustfmt
146+
- run: cargo fmt -- --check

README.md

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

3-
[![Build Status](https://dev.azure.com/rust-lang/compiler-builtins/_apis/build/status/rust-lang-nursery.compiler-builtins?branchName=master)](https://dev.azure.com/rust-lang/compiler-builtins/_build/latest?definitionId=6&branchName=master)
4-
53
> Porting `compiler-rt` intrinsics to Rust
64
75
See [rust-lang/rust#35437][0].

azure-pipelines.yml

Lines changed: 0 additions & 80 deletions
This file was deleted.

ci/azure-install-rust.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

ci/azure-steps.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)