Skip to content

Commit 218e0bb

Browse files
authored
Merge pull request #270 from servo/github-actions
Replace TravisCI with Github Actions.
2 parents 5ae217a + 52c50af commit 218e0bb

File tree

2 files changed

+83
-37
lines changed

2 files changed

+83
-37
lines changed

.github/workflows/main.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [auto]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
linux-ci:
11+
name: Linux
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
toolchain: ["stable", "beta", "nightly", "1.36.0"]
16+
include:
17+
- toolchain: stable
18+
env:
19+
DO_FUZZ: 1
20+
- toolchain: beta
21+
env:
22+
DO_FUZZ: 1
23+
steps:
24+
- uses: actions/checkout@v2
25+
26+
- name: Install packages
27+
run: sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc libiberty-dev
28+
29+
- name: Install toolchain
30+
uses: actions-rs/toolchain@v1
31+
with:
32+
profile: minimal
33+
toolchain: ${{ matrix.toolchain }}
34+
override: true
35+
36+
- name: Cargo build
37+
run: cargo build --verbose
38+
39+
- name: Cargo test
40+
run: cargo test --verbose
41+
42+
- name: Cargo test w/ serde
43+
run: cargo test --verbose --features serde
44+
45+
- name: Cargo check w/o default features
46+
if: matrix.toolchain == 'nightly'
47+
run: cargo check --verbose --no-default-features
48+
49+
- name: Cargo test w/ union
50+
if: matrix.toolchain == 'beta'
51+
run: cargo test --verbose --features union
52+
53+
- name: Cargo test all features
54+
if: matrix.toolchain == 'nightly'
55+
run: cargo test --verbose --all-features
56+
57+
- name: Cargo bench
58+
if: matrix.toolchain == 'nightly'
59+
run: cargo bench --verbose bench
60+
61+
- name: miri
62+
if: matrix.toolchain == 'nightly'
63+
run: bash ./scripts/run_miri.sh
64+
65+
- name: fuzz
66+
if: env.DO_FUZZ == '1'
67+
working-directory: fuzz
68+
run: ./travis_fuzz.sh
69+
70+
build_result:
71+
name: homu build finished
72+
runs-on: ubuntu-latest
73+
needs:
74+
- "linux-ci"
75+
76+
steps:
77+
- name: Mark the job as successful
78+
run: exit 0
79+
if: success()
80+
- name: Mark the job as unsuccessful
81+
run: exit 1
82+
if: "!success()"
83+

.travis.yml

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

0 commit comments

Comments
 (0)