Skip to content

Updatess (#19)

Updatess (#19) #89

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [main]
paths-ignore:
- "**/README.md"
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
fmt:
name: Cargo fmt/taplo check
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Rust
run:
rustup toolchain install nightly &&
rustup component add --toolchain nightly rustfmt
- name: Enable caching
uses: Swatinem/rust-cache@v2
- name: Install Just
uses: taiki-e/install-action@just
- uses: uncenter/setup-taplo@v1
with:
version: "0.8.1"
- run: taplo fmt foo.toml --check
- name: Run command
run: just _ci_fmt
rust-checks:
name: Cargo ${{ matrix.just }} (${{ matrix.board }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
just: ["build","clippy"]
board: ["esp32", "esp32c3"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Rust
uses: esp-rs/[email protected]
with:
default: true
buildtargets: esp32
ldproxy: false
- name: Enable caching
uses: Swatinem/rust-cache@v2
- name: Install Just
uses: taiki-e/install-action@just
- name: Run command
run: just _ci_${{ matrix.just }} ${{ matrix.board }}