Skip to content

Commit a5f9b88

Browse files
committed
Add GitHub Actions
1 parent d2c36c0 commit a5f9b88

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Continuous integration
7+
8+
jobs:
9+
ci-linux:
10+
runs-on: ubuntu-20.04
11+
continue-on-error: ${{ matrix.experimental || false }}
12+
strategy:
13+
matrix:
14+
rust: [stable]
15+
16+
include:
17+
# Test nightly but don't fail
18+
- rust: nightly
19+
experimental: true
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions-rs/toolchain@v1
23+
with:
24+
profile: minimal
25+
toolchain: ${{ matrix.rust }}
26+
override: true
27+
- name: Install Rust target
28+
run: rustup target install --toolchain=${{ matrix.rust }} riscv32imac-unknown-none-elf
29+
30+
- name: Check code
31+
run: cargo check --all-features
32+
- name: Check examples
33+
run: cargo build --target riscv32imac-unknown-none-elf --examples --all-features --release

0 commit comments

Comments
 (0)