Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Commit

Permalink
Migrate to RTIC v2
Browse files Browse the repository at this point in the history
  • Loading branch information
fmckeogh committed Feb 6, 2024
1 parent 4438373 commit 0232c50
Show file tree
Hide file tree
Showing 7 changed files with 146 additions and 183 deletions.
30 changes: 3 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,16 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: thumbv6m-none-eabi

- name: Run cargo format in check mode
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

- name: Cache artifacts
uses: Swatinem/rust-cache@v2

- name: Run cargo build
uses: actions-rs/cargo@v1
run: cargo build --release
env:
RUSTFLAGS: -D warnings
with:
command: build
args: --release

docs:
name: Docs
Expand All @@ -57,21 +43,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: thumbv6m-none-eabi

- name: Cache artifacts
uses: Swatinem/rust-cache@v2

- name: Run cargo doc
uses: actions-rs/cargo@v1
with:
command: doc
run: cargo doc

# https://github.com/actions/upload-pages-artifact#file-permissions
- run: chmod -c -R +rX ./target/thumbv6m-none-eabi/doc
Expand Down
Loading

0 comments on commit 0232c50

Please sign in to comment.