Skip to content

Commit

Permalink
Merge pull request #160 from rust-embedded/release-0.3.2
Browse files Browse the repository at this point in the history
release rust 0.3.2
  • Loading branch information
burrbull authored Oct 1, 2023
2 parents e5b65b4 + 0ba1a37 commit 27cf2b1
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 51 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v2
with:
Expand Down Expand Up @@ -43,14 +43,7 @@ jobs:
#- rp2040
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v2
with:
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@ jobs:
- { target: x86_64-pc-windows-msvc, os: windows-latest, suffix: .zip }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
target: ${{ matrix.target }}
override: true
- uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup target add ${{ matrix.target }}
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1
with:
Expand Down Expand Up @@ -52,7 +48,7 @@ jobs:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
path: artifacts
Expand Down
38 changes: 6 additions & 32 deletions .github/workflows/rust-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ jobs:
RUSTFLAGS: "-D warnings"
RUSTDOCFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/checkout@v4
- run: cargo build
- run: cargo doc

Expand All @@ -29,10 +26,7 @@ jobs:
RUSTFLAGS: "-D warnings"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/checkout@v4
- run: cargo test

test_convert:
Expand All @@ -41,10 +35,7 @@ jobs:
RUSTFLAGS: "-D warnings"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/checkout@v4
- run: |
cargo run --release -- convert res/example1/stm32l4x2.svd stm32l4x2.yaml
cargo run --release -- convert res/example1/stm32l4x2.svd stm32l4x2.json
Expand All @@ -55,24 +46,14 @@ jobs:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
# not using clippy-check due to this issue:
# https://github.com/actions-rs/clippy-check/issues/2
- uses: actions/checkout@v4
- run: cargo clippy -- --deny warnings

format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
- uses: actions/checkout@v4
- run: cargo fmt -- --check
check:
name: Check
Expand All @@ -83,14 +64,7 @@ jobs:
- stm32
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt
uses: actions/checkout@v4
- name: Install svdtools
run: |
cargo install svdtools --path .
Expand Down
9 changes: 8 additions & 1 deletion CHANGELOG-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ This changelog tracks the Rust `svdtools` project. See

## [Unreleased]

## [v0.3.2] 2023-10-01

* `_modify` `derivedFrom` for peripherals, clusters, registers and fields
* fix field bit range in `svdtools html`

## [v0.3.1] 2023-09-19

* add `svdtools html` and `svdtools htmlcompare` tools from `stm32-rs`
Expand Down Expand Up @@ -81,7 +86,9 @@ Other changes:

* Initial release with feature-parity with the Python project.

[Unreleased]: https://github.com/stm32-rs/svdtools/compare/v0.3.0...HEAD
[Unreleased]: https://github.com/stm32-rs/svdtools/compare/v0.3.2...HEAD
[v0.3.2]: https://github.com/stm32-rs/svdtools/compare/v0.3.1...v0.3.2
[v0.3.1]: https://github.com/stm32-rs/svdtools/compare/v0.3.0...v0.3.1
[v0.3.0]: https://github.com/stm32-rs/svdtools/compare/v0.2.8...v0.3.0
[v0.2.8]: https://github.com/stm32-rs/svdtools/compare/v0.2.7...v0.2.8
[v0.2.7]: https://github.com/stm32-rs/svdtools/compare/v0.2.6...v0.2.7
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "svdtools"
version = "0.3.1"
version = "0.3.2"
repository = "https://github.com/stm32-rs/svdtools"
description = "Tool for modifying bugs in CMSIS SVD"
authors = [
Expand All @@ -22,6 +22,7 @@ license = "MIT OR Apache-2.0"
readme = "README.md"
include = ["/res", "/src", "/tests", "CHANGELOG-rust.md", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
edition = "2021"
rust-version = "1.70"

[dependencies]
clap = { version = "4.1", features = ["derive", "cargo", "color"] }
Expand Down

0 comments on commit 27cf2b1

Please sign in to comment.