Skip to content

Commit 45ac4e8

Browse files
authored
Replaced old CI with one using GitHub Actions (#4)
The old CI was meant for cortex-m-semihosting, so it would not have worked with this repository, and it also used Travis CI, whereas the new one uses GitHub Actions. The CI runs `cargo check` for the following targets: - `riscv32i-unknown-none-elf` - `riscv32imc-unknown-none-elf` - `riscv32imac-unknown-none-elf` - `riscv64imac-unknown-none-elf` - `riscv64gc-unknown-none-elf` It also checks formatting and doc.
1 parent 64ef9e4 commit 45ac4e8

File tree

7 files changed

+66
-58
lines changed

7 files changed

+66
-58
lines changed

.github/workflows/check.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: check
2+
on: [push, pull_request]
3+
4+
jobs:
5+
check:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
# All generated code should be running on stable now, MRSV is 1.59.0
10+
toolchain: [nightly, stable, 1.59.0]
11+
target: [riscv32i-unknown-none-elf, riscv32imc-unknown-none-elf, riscv32imac-unknown-none-elf, riscv64imac-unknown-none-elf, riscv64gc-unknown-none-elf]
12+
13+
include:
14+
# Nightly is only for reference and allowed to fail
15+
- rust: nightly
16+
experimental: true
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions-rs/toolchain@v1
21+
with:
22+
profile: minimal
23+
toolchain: ${{ matrix.toolchain }}
24+
target: ${{ matrix.target }}
25+
override: true
26+
- uses: actions-rs/cargo@v1
27+
with:
28+
use-cross: true
29+
command: check
30+
args: --verbose --target ${{ matrix.target }}

.github/workflows/doc.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: doc
2+
on: [push, pull_request]
3+
4+
5+
jobs:
6+
doc:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions-rs/toolchain@v1
11+
with:
12+
profile: minimal
13+
toolchain: stable
14+
override: true
15+
- uses: actions-rs/cargo@v1
16+
with:
17+
command: doc

.github/workflows/fmt.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: fmt
2+
on: [push, pull_request]
3+
4+
jobs:
5+
fmt:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: actions-rs/toolchain@v1
10+
with:
11+
profile: minimal
12+
toolchain: stable
13+
override: true
14+
components: rustfmt
15+
- uses: actions-rs/cargo@v1
16+
with:
17+
command: fmt
18+
args: --all -- --check

.travis.yml

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

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
2020
bumped to 1.59.0
2121
- Clean up documentation, removing unnecessary references to
2222
cortex-m-semihosting and improving clarity.
23+
- Added GitHub Actions CI
2324

2425
## [v0.0.1] - 2018-02-27
2526

ci/install.sh

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

ci/script.sh

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

0 commit comments

Comments
 (0)