Skip to content

Commit 48a3948

Browse files
bors[bot]eldruin
andauthored
Merge #60
60: Use GHA for CI r=ryankurte a=eldruin Fixes #48 Co-authored-by: Diego Barrios Romero <[email protected]>
2 parents d01f86a + 5e3e24f commit 48a3948

File tree

7 files changed

+136
-241
lines changed

7 files changed

+136
-241
lines changed

.github/bors.toml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
block_labels = ["needs-decision"]
22
delete_merged_branches = true
33
required_approvals = 1
4-
status = ["continuous-integration/travis-ci/push"]
4+
status = [
5+
"build (stable, aarch64-unknown-linux-gnu)",
6+
"build (stable, arm-unknown-linux-gnueabi)",
7+
"build (stable, armv7-unknown-linux-gnueabihf)",
8+
"build (stable, i686-unknown-linux-gnu)",
9+
"build (stable, i686-unknown-linux-musl)",
10+
"build (stable, mips-unknown-linux-gnu)",
11+
"build (stable, mips64-unknown-linux-gnuabi64)",
12+
"build (stable, mips64el-unknown-linux-gnuabi64)",
13+
"build (stable, mipsel-unknown-linux-gnu)",
14+
"build (stable, powerpc-unknown-linux-gnu)",
15+
"build (stable, powerpc64le-unknown-linux-gnu)",
16+
"build (stable, s390x-unknown-linux-gnu)",
17+
"build (stable, x86_64-unknown-linux-gnu)",
18+
"build (stable, x86_64-unknown-linux-musl)",
19+
20+
"build (1.45.0, x86_64-unknown-linux-gnu)",
21+
22+
"checks"
23+
]
524
timeout_sec = 7200

.github/workflows/ci.yml

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Build
7+
8+
env:
9+
RUSTFLAGS: '--deny warnings'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
rust: [stable]
17+
TARGET:
18+
- aarch64-unknown-linux-gnu
19+
- arm-unknown-linux-gnueabi
20+
- armv7-unknown-linux-gnueabihf
21+
- i686-unknown-linux-gnu
22+
- i686-unknown-linux-musl
23+
- mips-unknown-linux-gnu
24+
- mips64-unknown-linux-gnuabi64
25+
- mips64el-unknown-linux-gnuabi64
26+
- mipsel-unknown-linux-gnu
27+
- powerpc-unknown-linux-gnu
28+
# - powerpc64-unknown-linux-gnu
29+
- powerpc64le-unknown-linux-gnu
30+
- s390x-unknown-linux-gnu
31+
- x86_64-unknown-linux-gnu
32+
- x86_64-unknown-linux-musl
33+
34+
include:
35+
# MSRV
36+
- rust: 1.45.0
37+
TARGET: x86_64-unknown-linux-gnu
38+
39+
# Test nightly but don't fail
40+
- rust: nightly
41+
TARGET: x86_64-unknown-linux-gnu
42+
experimental: true
43+
44+
steps:
45+
- uses: actions/checkout@v2
46+
- uses: actions-rs/toolchain@v1
47+
with:
48+
profile: minimal
49+
toolchain: ${{ matrix.rust }}
50+
target: ${{ matrix.TARGET }}
51+
override: true
52+
53+
- name: Build
54+
uses: actions-rs/cargo@v1
55+
with:
56+
command: build
57+
args: --target=${{ matrix.TARGET }}
58+
59+
- name: Build all features
60+
uses: actions-rs/cargo@v1
61+
with:
62+
command: build
63+
args: --target=${{ matrix.TARGET }} --all-features
64+
65+
- name: Test
66+
uses: actions-rs/cargo@v1
67+
with:
68+
use-cross: true
69+
command: test
70+
args: --target=${{ matrix.TARGET }}
71+
72+
- name: Test all features
73+
uses: actions-rs/cargo@v1
74+
with:
75+
use-cross: true
76+
command: test
77+
args: --target=${{ matrix.TARGET }} --all-features
78+
79+
checks:
80+
runs-on: ubuntu-latest
81+
82+
steps:
83+
- uses: actions/checkout@v2
84+
- uses: actions-rs/toolchain@v1
85+
with:
86+
profile: minimal
87+
toolchain: stable
88+
components: rustfmt
89+
90+
- name: Doc
91+
uses: actions-rs/cargo@v1
92+
with:
93+
command: doc
94+
95+
- name: Formatting
96+
uses: actions-rs/cargo@v1
97+
with:
98+
command: fmt
99+
args: --all -- --check
100+
101+
clippy:
102+
runs-on: ubuntu-latest
103+
env:
104+
RUSTFLAGS: '--allow warnings'
105+
steps:
106+
- uses: actions/checkout@v2
107+
- uses: actions-rs/toolchain@v1
108+
with:
109+
profile: minimal
110+
toolchain: 1.45.0
111+
components: clippy
112+
113+
- uses: actions-rs/clippy-check@v1
114+
with:
115+
token: ${{ secrets.GITHUB_TOKEN }}
116+

.travis.yml

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

ci/before_deploy.ps1

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

ci/before_deploy.sh

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

ci/install.sh

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

ci/script.sh

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

0 commit comments

Comments
 (0)