Skip to content

Commit

Permalink
Don't build the imac target against ESP IDF 4.4 as this is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Jan 2, 2025
1 parent 15ce753 commit ecf45d1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,38 +49,39 @@ jobs:
default: true

- name: Build | Fmt Check
if: matrix.target != 'riscv32imac-esp-espidf' || matrix.idf-version != 'v4.4.8'
run: cargo fmt -- --check

# - name: Build | Clippy (PIO)
# if: matrix.target == 'riscv32imc-esp-espidf' && matrix.idf-version == 'v5.2.1'
# if: matrix.target == 'riscv32imc-esp-espidf' && matrix.idf-version == 'v5.2.3'
# env:
# RUSTFLAGS: "${{ '--cfg espidf_time64' }}"
# run: cargo clippy --features pio --no-deps --target ${{ matrix.target }} -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort -- -Dwarnings

- name: Build | Clippy
if: matrix.target != 'riscv32imac-esp-espidf' || matrix.idf-version != 'release/v4.4'
if: matrix.target != 'riscv32imac-esp-espidf' || matrix.idf-version != 'v4.4.8'
env:
ESP_IDF_VERSION: ${{ matrix.idf-version }}
ESP_IDF_SDKCONFIG_DEFAULTS: "${{ github.workspace }}/.github/configs/sdkconfig.defaults"
RUSTFLAGS: "${{ startsWith(matrix.idf-version, 'v5') && '--cfg espidf_time64' || startsWith(matrix.idf-version, 'v4') && '--cfg espidf_time32' }}"
run: cargo clippy --no-deps --target ${{ matrix.target }} -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort -- -Dwarnings -Adeprecated

- name: Build | Compile (Native)
if: matrix.target != 'riscv32imac-esp-espidf' || matrix.idf-version != 'release/v4.4'
if: matrix.target != 'riscv32imac-esp-espidf' || matrix.idf-version != 'v4.4.8'
env:
ESP_IDF_VERSION: ${{ matrix.idf-version }}
RUSTFLAGS: "${{ startsWith(matrix.idf-version, 'v5') && '--cfg espidf_time64' || startsWith(matrix.idf-version, 'v4') && '--cfg espidf_time32' }}"
run: cargo build --target ${{ matrix.target }} -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort

- name: Build | Compile (Native), no_std
if: matrix.target != 'riscv32imac-esp-espidf' || matrix.idf-version != 'release/v4.4'
if: matrix.target != 'riscv32imac-esp-espidf' || matrix.idf-version != 'v4.4.8'
env:
ESP_IDF_VERSION: ${{ matrix.idf-version }}
RUSTFLAGS: "${{ startsWith(matrix.idf-version, 'v5') && '--cfg espidf_time64' || startsWith(matrix.idf-version, 'v4') && '--cfg espidf_time32' }}"
run: cargo build --target ${{ matrix.target }} --no-default-features -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort

# - name: Build | Compile (Native), alloc
# if: matrix.target != 'riscv32imac-esp-espidf' || matrix.idf-version != 'release/v4.4'
# if: matrix.target != 'riscv32imac-esp-espidf' || matrix.idf-version != 'v4.4.8'
# env:
# ESP_IDF_VERSION: ${{ matrix.idf-version }}
# RUSTFLAGS: "${{ startsWith(matrix.idf-version, 'v5') && '--cfg espidf_time64' || '' }}"
Expand All @@ -94,7 +95,7 @@ jobs:
chmod a+x $HOME/.cargo/bin/ldproxy
- name: Build | Examples
if: matrix.target != 'riscv32imac-esp-espidf' || matrix.idf-version != 'release/v4.4'
if: matrix.target != 'riscv32imac-esp-espidf' || matrix.idf-version != 'v4.4.8'
env:
ESP_IDF_VERSION: ${{ matrix.idf-version }}
RUSTFLAGS: "${{ startsWith(matrix.idf-version, 'v5') && '--cfg espidf_time64' || startsWith(matrix.idf-version, 'v4') && '--cfg espidf_time32' }}"
Expand Down

0 comments on commit ecf45d1

Please sign in to comment.