Skip to content

Commit 76a3d2e

Browse files
authored
Merge pull request #101 from rust-osdev/ci-no-std
repo: add CI no_std check
2 parents eb5f79d + 3f60db1 commit 76a3d2e

File tree

2 files changed

+37
-22
lines changed

2 files changed

+37
-22
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ insert_final_newline = true
99
indent_style = space
1010
indent_size = 4
1111
trim_trailing_whitespace = true
12+
13+
[*.yml]
14+
indent_size = 2

.github/workflows/rust.yml

Lines changed: 34 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,48 @@ env:
1111

1212
jobs:
1313
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
rust:
18+
- stable
19+
- nightly
20+
- 1.52.1 # MSVR
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Build
24+
run: cargo build --verbose
25+
- name: Run tests
26+
run: cargo test --verbose
1427

28+
build_no_std:
1529
runs-on: ubuntu-latest
1630
strategy:
17-
matrix:
18-
rust:
19-
- stable
20-
- nightly
21-
- 1.52.1 # MSVR
31+
matrix:
32+
rust:
33+
- stable
34+
- nightly
35+
- 1.52.1 # MSVR
2236
steps:
23-
- uses: actions/checkout@v2
24-
- name: Build
25-
run: cargo build --verbose
26-
- name: Run tests
27-
run: cargo test --verbose
37+
- uses: actions/checkout@v2
38+
- name: "Rustup: install some no_std target"
39+
run: rustup target add thumbv7em-none-eabihf
40+
- name: Build (no_std)
41+
run: cargo build --target thumbv7em-none-eabihf
2842

2943

3044
# As discussed, these tasks are optional for PRs.
3145
style_checks:
32-
3346
runs-on: ubuntu-latest
3447
strategy:
35-
matrix:
36-
rust:
37-
- stable
38-
48+
matrix:
49+
rust:
50+
- stable
3951
steps:
40-
- uses: actions/checkout@v2
41-
- name: Rustfmt
42-
run: cargo fmt -- --check
43-
- name: Clippy
44-
run: cargo clippy
45-
- name: Rustdoc
46-
run: cargo doc
52+
- uses: actions/checkout@v2
53+
- name: Rustfmt
54+
run: cargo fmt -- --check
55+
- name: Clippy
56+
run: cargo clippy
57+
- name: Rustdoc
58+
run: cargo doc

0 commit comments

Comments
 (0)