Skip to content

Commit f5343f3

Browse files
authored
Merge pull request #544 from newAM/various-chores
Various chores
2 parents ab31964 + 38dfcb7 commit f5343f3

File tree

21 files changed

+28
-72
lines changed

21 files changed

+28
-72
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
- "gh-readonly-queue/**"
55
pull_request:
66
merge_group:
7+
workflow_dispatch:
78

89
name: cortex-m CI
910

@@ -30,5 +31,3 @@ jobs:
3031
toolchain: ${{ matrix.rust }}
3132
- name: Run tests
3233
run: cargo test --all --exclude cortex-m-rt --exclude testsuite --features cortex-m/critical-section-single-core
33-
34-
# FIXME: test on macOS and Windows

.github/workflows/clippy.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,15 @@ on:
44
- "gh-readonly-queue/**"
55
pull_request_target:
66
merge_group:
7+
workflow_dispatch:
78

89
name: Clippy check
910
jobs:
1011
clippy:
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v4
14-
if: github.event_name == 'pull_request_target'
15-
with:
16-
ref: refs/pull/${{ github.event.number }}/head
17-
- uses: actions/checkout@v4
18-
if: github.event_name != 'pull_request_target'
1915
- uses: dtolnay/rust-toolchain@stable
2016
with:
2117
components: clippy
22-
- uses: actions-rs/clippy-check@v1
23-
with:
24-
token: ${{ secrets.GITHUB_TOKEN }}
25-
args: --all --features cortex-m/critical-section-single-core
18+
- run: cargo clippy --all --features cortex-m/critical-section-single-core -- --deny warnings

.github/workflows/cron.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ on:
22
schedule:
33
# Run every week at 8am UTC Saturday.
44
- cron: '0 8 * * SAT'
5+
workflow_dispatch:
56

67
name: Cron CI
78

@@ -26,7 +27,7 @@ jobs:
2627
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2728

2829
rt-ci-linux:
29-
runs-on: ubuntu-20.04
30+
runs-on: ubuntu-latest
3031
continue-on-error: ${{ matrix.experimental || false }}
3132
defaults:
3233
run:

.github/workflows/rt-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ on:
44
- "gh-readonly-queue/**"
55
pull_request:
66
merge_group:
7+
workflow_dispatch:
78

89
name: cortex-m-rt CI
910

1011
jobs:
1112
rt-ci-linux:
12-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-latest
1314
continue-on-error: ${{ matrix.experimental || false }}
1415
strategy:
1516
matrix:

.github/workflows/rustfmt.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
- "gh-readonly-queue/**"
55
pull_request:
66
merge_group:
7+
workflow_dispatch:
78

89
name: Code formatting check
910

@@ -16,7 +17,4 @@ jobs:
1617
- uses: dtolnay/rust-toolchain@stable
1718
with:
1819
components: rustfmt
19-
- uses: actions-rs/cargo@v1
20-
with:
21-
command: fmt
22-
args: --all -- --check
20+
- run: cargo fmt --all -- --check

cortex-m-rt/CODE_OF_CONDUCT.md

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

cortex-m-rt/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ panic-halt = "0.2.0"
2727
cortex-m-semihosting = { path = "../cortex-m-semihosting" }
2828

2929
[target.'cfg(not(target_os = "none"))'.dev-dependencies]
30-
compiletest_rs = "0.7"
30+
compiletest_rs = "0.11"
3131

3232
[[example]]
3333
name = "device"

cortex-m-rt/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ Contribution to this crate is organized under the terms of the [Rust Code of
3737
Conduct][CoC], the maintainer of this crate, the [Cortex-M team][team], promises
3838
to intervene to uphold that code of conduct.
3939

40-
[CoC]: CODE_OF_CONDUCT.md
40+
[CoC]: ../CODE_OF_CONDUCT.md
4141
[team]: https://github.com/rust-embedded/wg#the-cortex-m-team

cortex-m-semihosting/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ pub unsafe fn syscall<T>(nr: usize, arg: &T) -> usize {
200200
///
201201
/// # Safety
202202
///
203-
/// Same as [`syscall`].
203+
/// Same as [`syscall()`].
204204
#[inline(always)]
205205
pub unsafe fn syscall1(_nr: usize, _arg: usize) -> usize {
206206
match () {

cortex-m/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2525
- Added `critical-section-single-core` feature which provides an implementation for the `critical_section` crate for single-core systems, based on disabling all interrupts. (#447)
2626
- Added support for `embedded-hal` version 1 delay traits, requiring rust 1.60.
2727
- `singleton!()` now forwards attributes (#522).
28+
- Added `set_sevonpend` and `clear_sevonpend` (#539).
2829

2930
### Fixed
3031
- Fixed `singleton!()` statics sometimes ending up in `.data` instead of `.bss` (#364, #380).

0 commit comments

Comments
 (0)