Skip to content

Commit 79a2366

Browse files
committed
Auto merge of #1918 - rust-lang:gha, r=<try>
Serial Experiments GitHub Actions Let's start the party to close #1582.
2 parents 2cce551 + 1684ab7 commit 79a2366

File tree

15 files changed

+201
-336
lines changed

15 files changed

+201
-336
lines changed

.github/workflows/bors.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI (bors)
2+
3+
on:
4+
push:
5+
branches:
6+
- auto-libc
7+
- try
8+
9+
jobs:
10+
docker_linux_tier2:
11+
name: Docker Linux Tier2
12+
runs-on: ubuntu-18.04
13+
strategy:
14+
fail-fast: true
15+
max-parallel: 10
16+
matrix:
17+
target: [
18+
aarch64-linux-android,
19+
arm-linux-androideabi,
20+
x86_64-linux-android,
21+
]
22+
steps:
23+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
24+
with:
25+
github_token: "${{ secrets.GITHUB_TOKEN }}"
26+
- uses: actions/checkout@v2
27+
- name: Setup Rust toolchain
28+
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
29+
- name: Execute run-docker.sh
30+
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}

.github/workflows/main.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
push:
7+
branches:
8+
- master
9+
10+
jobs:
11+
docker_linux_tier1:
12+
name: Docker Linux Tier1
13+
runs-on: ubuntu-18.04
14+
strategy:
15+
fail-fast: true
16+
matrix:
17+
target: [
18+
i686-unknown-linux-gnu,
19+
x86_64-unknown-linux-gnu,
20+
]
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Setup Rust toolchain
24+
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
25+
- name: Execute run-docker.sh
26+
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
27+
28+
macos:
29+
name: macOS
30+
runs-on: macos-10.15
31+
strategy:
32+
fail-fast: true
33+
matrix:
34+
target: [
35+
x86_64-apple-darwin,
36+
]
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Setup Rust toolchain
40+
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
41+
- name: Execute run.sh
42+
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
43+
44+
windows:
45+
name: Windows
46+
runs-on: windows-2019
47+
env:
48+
OS: windows
49+
strategy:
50+
fail-fast: true
51+
matrix:
52+
include:
53+
- target: x86_64-pc-windows-gnu
54+
env:
55+
ARCH_BITS: 64
56+
ARCH: x86_64
57+
- target: x86_64-pc-windows-msvc
58+
# Disabled because broken:
59+
# https://github.com/rust-lang/libc/issues/1592
60+
#- target: i686-pc-windows-gnu
61+
# env:
62+
# ARCH_BITS: 32
63+
# ARCH: i686
64+
- target: i686-pc-windows-msvc
65+
steps:
66+
- uses: actions/checkout@v2
67+
- name: Setup Rust toolchain
68+
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
69+
shell: bash
70+
- name: Execute run.sh
71+
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
72+
shell: bash
73+
74+
style_and_docs:
75+
name: Style and docs
76+
runs-on: ubuntu-18.04
77+
strategy:
78+
fail-fast: true
79+
steps:
80+
- uses: actions/checkout@v2
81+
- name: Setup Rust toolchain
82+
run: sh ./ci/install-rust.sh
83+
- name: Check style
84+
run: sh ci/style.sh
85+
- name: Generate documentation
86+
run: LIBC_CI=1 sh ci/dox.sh

ci/android-install-ndk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -ex
44

55
NDK=android-ndk-r21d
6-
curl --retry 20 -O https://dl.google.com/android/repository/${NDK}-linux-x86_64.zip
6+
wget --tries=20 https://dl.google.com/android/repository/${NDK}-linux-x86_64.zip
77
unzip -q ${NDK}-linux-x86_64.zip
88

99
case "$1" in

ci/android-install-sdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set -ex
1111

1212
SDK=4333796
1313
mkdir sdk
14-
curl --retry 20 https://dl.google.com/android/repository/sdk-tools-linux-${SDK}.zip -O
14+
wget --tries=20 https://dl.google.com/android/repository/sdk-tools-linux-${SDK}.zip
1515
unzip -q -d sdk sdk-tools-linux-${SDK}.zip
1616

1717
case "$1" in

ci/android-sysimage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ main() {
1414
apt-get install --no-install-recommends e2tools
1515

1616
pushd "${td}"
17-
curl --retry 5 -O "${URL}/${name}"
17+
wget --tries=5 "${URL}/${name}"
1818
unzip -q "${name}"
1919

2020
local system

ci/azure-install-rust.yml

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

0 commit comments

Comments
 (0)