Skip to content

Try to fix CI

Try to fix CI #201

Workflow file for this run

name: Continuous integration
on:
push:
paths-ignore:
- "**/README.md"
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
rust-checks:
name: Rust checks
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
action:
- command: format
args: --all -- --check --color always
- command: clippy
args: --all-targets --all-features --workspace -- -D warnings
- command: build
args: --release
- command: test
args: --all -- --include-ignored
target:
- linux
- esp32
- esp32s3
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Enable caching
uses: Swatinem/rust-cache@v2
with:
key: "${{ matrix.target }}"
- name: Setup stable rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Setup ESP rust toolchain
uses: esp-rs/[email protected]
with:
default: true
buildtargets: esp32,esp32s3
ldproxy: true
- name: Build and enable build tool
run: source Export.sh
- name: Run command
run: Build_tool/target/release/Build_tool ${{ matrix.action.command }} ${{ matrix.target }} ${{ matrix.action.args }}