Skip to content

Commit

Permalink
Use the firmware working directory for cargo (#52)
Browse files Browse the repository at this point in the history
* Use the firmware working directory for cargo

* Fix an oopsie

* Fix an oopsie

* Fuck yaml

* Use a more maintained actions-rs github actions repo

* More CI fixes
  • Loading branch information
bschwind authored Nov 12, 2023
1 parent 576e5d1 commit 7d9ba87
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
on: [push, pull_request]
on:
push:
branches:
- main
pull_request:

name: Cargo Clippy

Expand All @@ -7,15 +11,12 @@ jobs:
name: Cargo Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- run: rustup target install thumbv6m-none-eabi
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path firmware/Cargo.toml --all-targets -- -D warnings
- name: Cache Rust Dependencies
uses: Swatinem/rust-cache@v2
- run: cd firmware && cargo clippy -- -D warnings
17 changes: 8 additions & 9 deletions .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
on: [push, pull_request]
on:
push:
branches:
- main
pull_request:

name: Cargo Format

Expand All @@ -7,14 +11,9 @@ jobs:
name: Cargo Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path firmware/Cargo.toml --all -- --check
- run: cd firmware && cargo fmt --all -- --check

0 comments on commit 7d9ba87

Please sign in to comment.