Skip to content

Commit 1a83d13

Browse files
authored
Try #276:
2 parents 25f6613 + 91470c7 commit 1a83d13

21 files changed

+118
-61
lines changed

.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.38.0)",
7+
"rustfmt",
8+
]

.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: CI
7+
8+
jobs:
9+
ci-linux:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
# All generated code should be running on stable now
14+
rust: [stable]
15+
16+
include:
17+
# Test MSRV
18+
- rust: 1.38.0
19+
20+
# Test nightly but don't fail
21+
- rust: nightly
22+
experimental: true
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: actions-rs/toolchain@v1
26+
with:
27+
profile: minimal
28+
toolchain: ${{ matrix.rust }}
29+
override: true
30+
- name: Run tests
31+
run: cargo test --all
32+
33+
# FIXME: test on macOS and Windows

.github/workflows/clippy.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Clippy check
7+
jobs:
8+
clippy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions-rs/toolchain@v1
13+
with:
14+
profile: minimal
15+
toolchain: stable
16+
override: true
17+
components: clippy
18+
- uses: actions-rs/clippy-check@v1
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/rustfmt.yml

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

.travis.yml

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

asm/inline.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//! All of these functions should be blanket-`unsafe`. `cortex-m` provides safe wrappers where
77
//! applicable.
88
9-
use core::sync::atomic::{Ordering, compiler_fence};
9+
use core::sync::atomic::{compiler_fence, Ordering};
1010

1111
#[inline(always)]
1212
pub unsafe fn __bkpt() {
@@ -187,7 +187,7 @@ pub unsafe fn __syscall(mut nr: u32, arg: u32) -> u32 {
187187
pub use self::v7m::*;
188188
#[cfg(any(armv7m, armv8m_main))]
189189
mod v7m {
190-
use core::sync::atomic::{Ordering, compiler_fence};
190+
use core::sync::atomic::{compiler_fence, Ordering};
191191

192192
#[inline(always)]
193193
pub unsafe fn __basepri_max(val: u8) {

bin/thumbv6m-none-eabi-lto.a

0 Bytes
Binary file not shown.

bin/thumbv7em-none-eabi-lto.a

4 Bytes
Binary file not shown.

bin/thumbv7em-none-eabihf-lto.a

-4 Bytes
Binary file not shown.

bin/thumbv7m-none-eabi-lto.a

-4 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)