aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authordatdenkikniet <jcdra1@gmail.com>2025-03-22 23:55:32 +0100
committerdatdenkikniet <38322042+datdenkikniet@users.noreply.github.com>2025-03-23 09:57:48 +0000
commit11699b439126744ad918a1c6b90e73cb24da868d (patch)
tree02421695d6cab568fb6010fce4369f918a8fe406 /.github/workflows
parent5de3ca0aef627f9d4d095e386c3b833d35477685 (diff)
rtic: placate clippy for esp32c3
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml47
-rw-r--r--.github/workflows/clippy-check-example.yml20
2 files changed, 19 insertions, 48 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index a18fcd7..1c7301d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -74,53 +74,6 @@ jobs:
platform: esp32-c3
rustup-target: riscv32imc-unknown-none-elf
- # Clippy
- # TODO: put in clippy-check-example once esp32-c3 clippy is fixed
- clippy:
- name: clippy
- runs-on: ubuntu-22.04
- strategy:
- matrix:
- input:
- - backend: thumbv7
- platform: lm3s6965
- rustup-target: thumbv7m-none-eabi
-
- - backend: thumbv6
- platform: lm3s6965
- rustup-target: thumbv6m-none-eabi
-
- - backend: thumbv8-base
- platform: lm3s6965
- rustup-target: thumbv8m.base-none-eabi
-
- - backend: thumbv8-main
- platform: lm3s6965
- rustup-target: thumbv8m.main-none-eabi
-
- - backend: riscv32-imc-clint
- platform: hifive1
- rustup-target: riscv32imc-unknown-none-elf
-
- - backend: riscv32-imc-mecall
- platform: hifive1
- rustup-target: riscv32imc-unknown-none-elf
-
- steps:
- - name: Checkout
- uses: actions/checkout@v4
-
- - name: Configure Rust target ${{ matrix.input.rustup-target }}
- run: rustup target add ${{ matrix.input.rustup-target }}
-
- - name: Add Rust component clippy
- run: rustup component add clippy
-
- - name: Cache Dependencies
- uses: Swatinem/rust-cache@v2
-
- - run: cargo xtask --deny-warnings --platform ${{ matrix.input.platform }} --backend ${{ matrix.input.backend }} clippy
-
buildqemu:
name: Get modern QEMU, build and store
runs-on: ubuntu-22.04
diff --git a/.github/workflows/clippy-check-example.yml b/.github/workflows/clippy-check-example.yml
index 5d44614..e1a5f62 100644
--- a/.github/workflows/clippy-check-example.yml
+++ b/.github/workflows/clippy-check-example.yml
@@ -53,4 +53,22 @@ jobs:
uses: Swatinem/rust-cache@v2
- name: Check the examples
- run: cargo xtask example-check --platform ${{ inputs.platform }} --backend ${{ inputs.backend }} ${{ inputs.example-args }} \ No newline at end of file
+ run: cargo xtask example-check --platform ${{ inputs.platform }} --backend ${{ inputs.backend }} ${{ inputs.example-args }}
+
+ clippy:
+ runs-on: ubuntu-22.04
+ name: Run clippy
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Configure Rust target ${{ inputs.rustup-target }}
+ run: rustup target add ${{ inputs.rustup-target }}
+
+ - name: Add Rust component clippy
+ run: rustup component add clippy
+
+ - name: Cache Dependencies
+ uses: Swatinem/rust-cache@v2
+
+ - run: cargo xtask --deny-warnings --platform ${{ inputs.platform }} --backend ${{ inputs.backend }} clippy \ No newline at end of file