update pin out #106
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust CI | ||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
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: | ||
crate: ["relay", "wifi", "dc", "input_controller", "output_controller"] | ||
action: | ||
- command: check | ||
args: --release | ||
- command: fmt | ||
args: --all -- --check --color always | ||
- command: clippy | ||
args: --all-features --workspace | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Setup Rust | ||
uses: esp-rs/[email protected] | ||
with: | ||
default: true | ||
buildtargets: esp32 | ||
ldproxy: true | ||
- name: Enable caching | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: "relay/ -> target | ||
wifi/ -> target | ||
input_controller/ -> target | ||
output_controller/ -> target | ||
- name: Xtensa rustup target | ||
run: espup install | ||
- name: Source espup script | ||
run: . $HOME/export-esp.sh | ||
- name: Run command | ||
run: cargo ${{ matrix.action.command }} --manifest-path=${{ matrix.crate }}/Cargo.toml ${{ matrix.action.args }} |