Skip to content

Commit b5fcd72

Browse files
bors[bot]almindor
andauthored
Merge #76
76: switch to Github Actions for CI r=Disasm a=almindor Co-authored-by: Ales Katona <ales@katona.me>
2 parents 49c1484 + 2f131cd commit b5fcd72

File tree

7 files changed

+70
-94
lines changed

7 files changed

+70
-94
lines changed

riscv-rt/.github/bors.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
block_labels = ["needs-decision"]
22
delete_merged_branches = true
33
required_approvals = 1
4-
status = ["continuous-integration/travis-ci/push"]
4+
status = [
5+
"ci-linux (stable)",
6+
"ci-linux (1.42.0)",
7+
"Rustfmt"
8+
]

riscv-rt/.github/workflows/ci.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
# All generated code should be running on stable now, MRSV is 1.42.0
15+
rust: [nightly, stable, 1.42.0]
16+
17+
include:
18+
# Nightly is only for reference and allowed to fail
19+
- rust: nightly
20+
experimental: true
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: actions-rs/toolchain@v1
25+
with:
26+
profile: minimal
27+
toolchain: ${{ matrix.rust }}
28+
override: true
29+
- name: Install all Rust targets for ${{ matrix.rust }}
30+
run: rustup target install --toolchain=${{ matrix.rust }} riscv32imac-unknown-none-elf riscv64imac-unknown-none-elf riscv64gc-unknown-none-elf
31+
- name: Install riscv gcc
32+
run: sudo apt-get update && sudo apt-get install -y gcc-riscv64-unknown-elf
33+
- name: Run CI script for riscv32imac-unknown-none-elf under ${{ matrix.rust }}
34+
run: TARGET=riscv32imac-unknown-none-elf cargo check
35+
- name: Run CI script for riscv64imac-unknown-none-elf under ${{ matrix.rust }}
36+
run: TARGET=riscv64imac-unknown-none-elf cargo check
37+
- name: Run CI script for riscv64gc-unknown-none-elf under ${{ matrix.rust }}
38+
run: TARGET=riscv64gc-unknown-none-elf cargo check
39+
- name: Check blobs
40+
run: ./check-blobs.sh
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
on:
3+
push:
4+
branches: [ staging, trying, master ]
5+
pull_request:
6+
7+
name: Code formatting check
8+
9+
jobs:
10+
fmt:
11+
name: Rustfmt
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions-rs/toolchain@v1
16+
with:
17+
profile: minimal
18+
toolchain: stable
19+
override: true
20+
components: rustfmt
21+
- uses: actions-rs/cargo@v1
22+
with:
23+
command: fmt
24+
args: --all -- --check

riscv-rt/.travis.yml

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

riscv-rt/ci/install.sh

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

riscv-rt/ci/script.sh

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

riscv-rt/macros/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ use rand::Rng;
1414
use rand::SeedableRng;
1515
use std::sync::atomic::{AtomicUsize, Ordering};
1616
use std::time::{SystemTime, UNIX_EPOCH};
17-
use syn::{
18-
parse, spanned::Spanned, Ident, ItemFn, ReturnType, Type, Visibility,
19-
};
17+
use syn::{parse, spanned::Spanned, Ident, ItemFn, ReturnType, Type, Visibility};
2018

2119
static CALL_COUNT: AtomicUsize = AtomicUsize::new(0);
2220

0 commit comments

Comments
 (0)