Skip to content

Commit

Permalink
:octocat: GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tosainu committed Aug 12, 2024
1 parent 4795328 commit 597b38d
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
- package-ecosystem: cargo
directories:
- /bp35c0-j11
- /rp2040-log-to-cdc
schedule:
interval: monthly
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI
on:
push:
branches:
- main
pull_request:

jobs:
test:
strategy:
matrix:
rust:
- 1.80.1
- stable
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.7
- name: Setup Rust toolchains
run: |
rustup toolchain update "${{ matrix.rust }}" --no-self-update
rustup default "${{ matrix.rust }}"
rustup target add thumbv6m-none-eabi
- run: cargo check
- run: cargo test --target "$(rustc -vV | grep host | cut -d' ' -f2)"

fmt:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.7
- name: Setup Rust toolchains
run: |
rustup toolchain update stable --no-self-update
rustup default stable
rustup target add thumbv6m-none-eabi
rustup component add clippy rustfmt
- run: cargo fmt --check

clippy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.7
- name: Setup Rust toolchains
run: |
rustup toolchain update stable --no-self-update
rustup default stable
rustup target add thumbv6m-none-eabi
rustup component add clippy rustfmt
- run: cargo clippy -- -D warnings

0 comments on commit 597b38d

Please sign in to comment.