From e4264b68c0b6239bc9ef16ec0fa708d8f9f50074 Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Thu, 28 Nov 2024 18:23:33 +0000 Subject: [PATCH] Remove support for ESP-IDF 4.4.X --- .cargo/config.toml | 7 ------- .github/workflows/ci.yml | 6 +----- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 915377e..dff2ea8 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -6,23 +6,18 @@ target = "xtensa-esp32-espidf" [target.xtensa-esp32-espidf] linker = "ldproxy" -rustflags = ["--cfg", "espidf_time64"] [target.xtensa-esp32s2-espidf] linker = "ldproxy" -rustflags = ["--cfg", "espidf_time64"] [target.xtensa-esp32s3-espidf] linker = "ldproxy" -rustflags = ["--cfg", "espidf_time64"] [target.riscv32imc-esp-espidf] linker = "ldproxy" -rustflags = ["--cfg", "espidf_time64"] [target.riscv32imac-esp-espidf] linker = "ldproxy" -rustflags = ["--cfg", "espidf_time64"] [unstable] build-std = ["std", "panic_abort"] @@ -30,5 +25,3 @@ build-std = ["std", "panic_abort"] [env] ESP_IDF_SDKCONFIG_DEFAULTS = ".github/configs/sdkconfig.defaults" ESP_IDF_VERSION = "v5.2.2" -# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174 -CRATE_CC_NO_DEFAULTS = "1" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2671b17..e29832a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,6 @@ jobs: - xtensa-esp32s2-espidf - xtensa-esp32s3-espidf idf-version: - - v4.4.7 - v5.1.2 - v5.2.2 steps: @@ -53,21 +52,18 @@ jobs: 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' || '' }}" run: cargo clippy --no-deps --target ${{ matrix.target }} -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort -- -Dwarnings - name: Build | Compile 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' || '' }}" run: cargo build --target ${{ matrix.target }} -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort - name: Build | Compile, no_std 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' || '' }}" run: cargo build --no-default-features --target ${{ matrix.target }} -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort - name: Setup | ldproxy @@ -81,7 +77,7 @@ jobs: 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' || '' }} ${{ '-C default-linker-libraries' }}" + RUSTFLAGS: "${{ '-C default-linker-libraries' }}" WIFI_SSID: "ssid" WIFI_PASS: "pass" if: matrix.target == 'riscv32imc-esp-espidf'