Skip to content

Commit 1183ccd

Browse files
authored
Add GitHub Action for CI
1 parent 501d6a3 commit 1183ccd

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

.github/workflows/rust.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build stable:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions-rs/toolchain@v1
20+
with:
21+
toolchain: stable
22+
- name: Build
23+
run: cargo build --verbose --all
24+
- name: Run tests
25+
run: cargo test --verbose --all
26+
- name: Docs
27+
run: cargo doc --verbose --all
28+
29+
build beta:
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
- uses: actions-rs/toolchain@v1
35+
with:
36+
toolchain: beta
37+
- name: Build
38+
run: cargo build --verbose --all
39+
- name: Run tests
40+
run: cargo test --verbose --all
41+
- name: Docs
42+
run: cargo doc --verbose --all
43+
44+
build nightly:
45+
runs-on: ubuntu-latest
46+
47+
steps:
48+
- uses: actions/checkout@v2
49+
- uses: actions-rs/toolchain@v1
50+
with:
51+
toolchain: nightly
52+
- name: Build
53+
run: cargo build --verbose --all
54+
- name: Run tests
55+
run: cargo test --verbose --all
56+
- name: Docs
57+
run: cargo doc --verbose --all
58+
59+
check big endian:
60+
runs-on: ubuntu-latest
61+
62+
steps:
63+
- uses: actions/checkout@v2
64+
- uses: actions-rs/toolchain@v1
65+
with:
66+
toolchain: stable
67+
target: powerpc64-unknown-linux-gnu
68+
- name: Check
69+
run: cargo check --verbose --target powerpc64-unknown-linux-gnu --lib --bins --tests

0 commit comments

Comments
 (0)