Skip to content
This repository was archived by the owner on Nov 28, 2023. It is now read-only.

Commit 6c846ae

Browse files
bors[bot]almindor
andauthored
Merge #76
76: switch to Github Actions for CI r=Disasm a=almindor Co-authored-by: Ales Katona <[email protected]>
2 parents 47ece5f + e9c327d commit 6c846ae

File tree

7 files changed

+70
-94
lines changed

7 files changed

+70
-94
lines changed

.github/bors.toml

+5-1
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+
]

.github/workflows/ci.yaml

+40
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

.github/workflows/rustfmt.yaml

+24
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

.travis.yml

-48
This file was deleted.

ci/install.sh

-18
This file was deleted.

ci/script.sh

-24
This file was deleted.

macros/src/lib.rs

+1-3
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)