ci: check can use the same template

This commit is contained in:
datdenkikniet 2025-03-22 21:56:02 +01:00
parent 4ada82475c
commit f118d652d0

View file

@ -33,41 +33,36 @@ jobs:
- name: cargo xtask fmt - name: cargo xtask fmt
run: cargo xtask --verbose fmt -c run: cargo xtask --verbose fmt -c
# Compilation check (lm3s6965) # Compilation check
checklm3s6965: # TODO: check hifive1, esp32-c3
check:
name: check (lm3s6965) name: check (lm3s6965)
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
backend: input:
- thumbv7 - backend: thumbv7
- thumbv6 rustup-target: thumbv7m-none-eabi
- thumbv8-base
- thumbv8-main - backend: thumbv6
toolchain: rustup-target: thumbv6m-none-eabi
- stable
- backend: thumbv8-base
rustup-target: thumbv8m.base-none-eabi
- backend: thumbv8-main
rustup-target: thumbv8m.main-none-eabi
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Rust ${{ matrix.toolchain }}
run: |
rustup override set ${{ matrix.toolchain }}
- name: Configure Rust target (v6, v7, v8.b v8.m) - name: Configure Rust target (v6, v7, v8.b v8.m)
run: | run: rustup target add ${{ matrix.input.rustup-target }}
rustup target add thumbv7m-none-eabi
rustup target add thumbv6m-none-eabi
rustup target add thumbv8m.base-none-eabi
rustup target add thumbv8m.main-none-eabi
- name: Cache Dependencies - name: Cache Dependencies
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2
- run: cargo xtask --deny-warnings --platform lm3s6965 --backend ${{ matrix.backend }} check - run: cargo xtask --deny-warnings --platform lm3s6965 --backend ${{ matrix.input.backend }} check
# Compilation check (hifive1) TODO
# checkhifive1:
# Clippy # Clippy
# TODO: clippy hifive1, esp32-c3 # TODO: clippy hifive1, esp32-c3
@ -743,8 +738,7 @@ jobs:
if: github.event_name == 'push' && success() if: github.event_name == 'push' && success()
needs: needs:
- formatcheck - formatcheck
- checklm3s6965 - check
# - checkhifive1 # TODO
- clippy - clippy
- checkexamples - checkexamples
- testexamples - testexamples