Skip to content

Commit 4b9937f

Browse files
authored
Merge pull request #225 from rust-embedded/update-actions
update ci & deprecate bors
2 parents dcbfcb9 + 4a5e13c commit 4b9937f

File tree

15 files changed

+45
-74
lines changed

15 files changed

+45
-74
lines changed

.github/bors.toml

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

.github/workflows/ci.yml

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,67 @@
11
on:
22
push:
3-
branches: [ staging, trying, master ]
3+
branches: master
44
pull_request:
5+
merge_group:
56

67
name: Continuous Integration
78

89
jobs:
10+
ci:
11+
name: CI
12+
runs-on: ubuntu-latest
13+
needs: [build, test, test-strict]
14+
if: always()
15+
steps:
16+
- name: Done
17+
run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
18+
919
# check if the project builds with MSRV, stable and nighly
1020
build:
21+
name: "Build (${{ matrix.name || matrix.rust }})"
1122
runs-on: ubuntu-latest
1223
continue-on-error: ${{ matrix.experimental || false }}
1324
strategy:
1425
matrix:
15-
rust: [ 1.56.0, stable ]
26+
rust: [ stable ]
1627
include:
1728
# Test nightly but don't fail the build.
1829
- rust: nightly
1930
experimental: true
31+
# MSRV
32+
- rust: 1.58.0
33+
name: "MSRV"
2034
steps:
2135
- name: Checkout repository
2236
uses: actions/checkout@v3
2337
- name: Install Rust
24-
uses: actions-rs/toolchain@v1
38+
uses: dtolnay/rust-toolchain@master
2539
with:
2640
toolchain: ${{ matrix.rust }}
27-
profile: minimal
28-
override: true
29-
- uses: actions-rs/cargo@v1
30-
with:
31-
command: check
41+
components: clippy
42+
- run: cargo check
43+
env:
44+
RUSTFLAGS: -D warnings
45+
- run: cargo clippy
3246

3347
test:
3448
runs-on: ubuntu-latest
3549
steps:
3650
- name: Checkout repository
3751
uses: actions/checkout@v3
3852
- name: Install Rust
39-
uses: actions-rs/toolchain@v1
53+
uses: dtolnay/rust-toolchain@master
4054
with:
4155
toolchain: stable
42-
profile: minimal
43-
override: true
44-
- uses: actions-rs/cargo@v1
45-
with:
46-
command: test
56+
- run: cargo test
4757

4858
test-strict:
4959
runs-on: ubuntu-latest
5060
steps:
5161
- name: Checkout repository
5262
uses: actions/checkout@v3
5363
- name: Install Rust
54-
uses: actions-rs/toolchain@v1
64+
uses: dtolnay/rust-toolchain@master
5565
with:
5666
toolchain: stable
57-
profile: minimal
58-
override: true
59-
- uses: actions-rs/cargo@v1
60-
with:
61-
command: test
62-
args: --all-features
67+
- run: cargo test --all-features

.github/workflows/clippy.yml

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

.github/workflows/rustfmt.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
on:
22
push:
3-
branches: [ staging, trying, master ]
3+
branches: master
44
pull_request:
5+
merge_group:
56

67
name: Code formatting check
78

@@ -11,13 +12,8 @@ jobs:
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v3
14-
- uses: actions-rs/toolchain@v1
15+
- uses: dtolnay/rust-toolchain@master
1516
with:
16-
profile: minimal
1717
toolchain: stable
18-
override: true
1918
components: rustfmt
20-
- uses: actions-rs/cargo@v1
21-
with:
22-
command: fmt
23-
args: --all -- --check
19+
- run: cargo fmt --all -- --check

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ It consists of:
1010

1111
## Minimum Supported Rust Version (MSRV)
1212

13-
This crate is guaranteed to compile on stable Rust 1.56.0 and up. It *might*
13+
This crate is guaranteed to compile on stable Rust 1.58.0 and up. It *might*
1414
compile with older versions but that may change in any new patch release.
1515

1616
## License

cmsis-svd

Submodule cmsis-svd updated from e5db238 to 9c416c5

svd-encoder/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"
77
name = "svd-encoder"
88
repository = "https://github.com/rust-embedded/svd"
99
edition = "2021"
10-
rust-version = "1.56.0"
10+
rust-version = "1.58.0"
1111
version = "0.14.3"
1212
readme = "README.md"
1313

svd-encoder/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This project is developed and maintained by the [Tools team][team].
1313

1414
## Minimum Supported Rust Version (MSRV)
1515

16-
This crate is guaranteed to compile on stable Rust 1.56.0 and up. It *might*
16+
This crate is guaranteed to compile on stable Rust 1.58.0 and up. It *might*
1717
compile with older versions but that may change in any new patch release.
1818

1919
## License

svd-parser/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## Unreleased
99

10+
- Bump MSRV to 1.58.0
11+
1012
## [v0.14.1] - 2022-10-23
1113

1214
- Update to `svd-rs` 0.14.1

svd-parser/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0"
1010
name = "svd-parser"
1111
repository = "https://github.com/rust-embedded/svd"
1212
edition = "2021"
13-
rust-version = "1.56.0"
13+
rust-version = "1.58.0"
1414
version = "0.14.1"
1515
readme = "README.md"
1616

0 commit comments

Comments
 (0)