Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI actions #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
name: cargo +nightly build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin
Expand All @@ -34,20 +34,14 @@ jobs:
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: thumbv7m-none-eabi
default: true
components: rustfmt, clippy
run: |
rustup toolchain install nightly --target thumbv7m-none-eabi --component clippy,rustfmt
rustup default nightly
- run: cargo fmt -- --check
- run: cargo install cargo-readme
- run: cargo test
- name: cargo build no_std
run: cargo build --target thumbv7m-none-eabi --no-default-features
- name: cargo clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
- run: cargo clippy -- -D warnings
- name: Ensure README.md is updated
run: '[ "$(< README.md)" = "$(cargo readme)" ]'
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@

extern crate alloc;

use core::{fmt, ffi::*};
use core::{ffi::*, fmt};

pub mod output;
mod parser;
Expand Down