From 7752361d3fcfb9c2a09bd280feeb17e0dc40ea93 Mon Sep 17 00:00:00 2001 From: bjoernQ Date: Wed, 7 Feb 2024 09:03:43 +0100 Subject: [PATCH] Speed-up CI --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57c88c7..a3e80fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,8 +21,8 @@ jobs: fail-fast: false matrix: chip: [esp32c2, esp32c3, esp32c6, esp32h2, esp32p4] - colors: ["colors", ""] - method: ["println","defmt"] + colors: ["colors"] + method: ["println"] steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@v1 @@ -42,8 +42,8 @@ jobs: fail-fast: false matrix: chip: [esp32, esp32s2, esp32s3] - colors: ["colors", ""] - method: ["println","defmt"] + colors: ["colors"] + method: ["println"] steps: - uses: actions/checkout@v3 - uses: esp-rs/xtensa-toolchain@v1.5 @@ -52,3 +52,24 @@ jobs: ldproxy: false - uses: Swatinem/rust-cache@v2 - run: cargo check -Zbuild-std=core --target=xtensa-${{ matrix.chip }}-none-elf --no-default-features --features=esp-println/uart,${{ matrix.chip }},panic-handler,exception-handler,${{ matrix.method }},${{ matrix.colors }} + + check-features: + name: Check unusual feature combinations + runs-on: ubuntu-latest + env: + RUSTFLAGS: -Dwarnings + strategy: + fail-fast: false + matrix: + chip: [esp32c3] + colors: ["colors", ""] + method: ["println","defmt"] + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@v1 + with: + target: riscv32imc-unknown-none-elf + toolchain: nightly + components: rust-src + - uses: Swatinem/rust-cache@v2 + - run: cargo check -Zbuild-std=core --target=riscv32imc-unknown-none-elf --no-default-features --features=esp-println/uart,${{ matrix.chip }},panic-handler,exception-handler,${{ matrix.method }},${{ matrix.colors }}