Skip to content

Commit

Permalink
Adds build to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ansg191 committed Mar 10, 2024
1 parent 5f55f3e commit 5d4b881
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,26 @@ jobs:
components: rustfmt
- name: Rustfmt
run: cargo fmt --all -- --check

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@nightly
with:
targets: thumbv6m-none-eabi
components: rust-src,llvm-tools-preview
- uses: baptiste0928/cargo-install@v3
with:
crate: cargo-binutils
- name: Build
run: cargo build --release
- name: Print Size and convert to Badge JSON
run: |
cargo size --release
| tail -n +2
| awk '{printf "{\"message\": \"%d B\"}", $1}'
| jq '.schemaVersion = 1'
| jq '.label = "Text Size"'
| jq '.color = "green"'

0 comments on commit 5d4b881

Please sign in to comment.