-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
82 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,21 @@ | ||
name: ci | ||
|
||
on: [push] | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
compile: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- rust: stable | ||
# - rust: nightly | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
components: llvm-tools-preview | ||
|
||
- name: install cargo-binutils | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: install | ||
args: cargo-binutils | ||
toolchain: ${{ matrix.rust }} | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: cargo install cargo-binutils | ||
|
||
- name: program size | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: size | ||
args: --release | ||
toolchain: ${{ matrix.rust }} | ||
- run: cargo build | ||
- run: cargo size | ||
|
||
- name: lint | ||
uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Annotate commit with clippy warnings | ||
uses: giraffate/clippy-action@v1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,10 @@ version = "0.1.0" | |
authors = ["Damjan Georgievski <[email protected]>"] | ||
|
||
[dependencies] | ||
cortex-m-rt = "0.6.15" # can't upgrade higher until g0xx-hal catches up | ||
stm32g0xx-hal = { version = "0.1.2", features = ["stm32g031", "rt"] } | ||
rtt-target = { version = "0.3.1", features = ["cortex-m"] } | ||
stm32g0xx-hal = { version = "0.2", features = ["stm32g031", "rt"] } | ||
cortex-m-rt = "0.7.4" | ||
panic-halt = "0.2.0" | ||
rtt-target = "0.5.0" | ||
|
||
[profile.release] | ||
debug = true # "true" is ok, symbols reside on the host, not the target | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
[default.general] | ||
chip = "STM32G031J6Mx" | ||
|
||
[default.rtt] | ||
enabled = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
[toolchain] | ||
channel = "stable" | ||
targets = ["thumbv6m-none-eabi"] | ||
components = [ "rust-src", "rustfmt", "llvm-tools" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters