Skip to content

Commit

Permalink
change from "release/x" to tagged esp-idf versions (#146)
Browse files Browse the repository at this point in the history
* change from "release/x" to tagged esp-idf versions

* remove duplicated name keyword from ci config

* ci use version instead of name for config

* ci use correct major.minor name as in config.toml
  • Loading branch information
Vollbrecht authored Aug 1, 2023
1 parent 49d9476 commit 9a56eef
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 19 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/ci_cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:

jobs:
cargo-checks-v5:
name: "${{ matrix.target }} | ${{ matrix.esp-idf.name }} | std(hal):${{ matrix.std-config.std }}(${{ matrix.std-config.hal }})"
name: "${{ matrix.target }} | ${{ matrix.esp-idf.version }} | std(hal):${{ matrix.std-config.std }}(${{ matrix.std-config.hal }})"
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -34,8 +34,7 @@ jobs:
- std: true
hal: "Yes (all features)"
esp-idf:
- version: release/v5.1
name: v5.1
- version: v5.1
# - version: master
# name: master
steps:
Expand Down Expand Up @@ -79,10 +78,10 @@ jobs:
path: /home/runner/work/esp-idf-template/esp-idf-template/github-esp-idf-template
- name: Generate (STD)
if: matrix.std-config.std == true
run: cargo generate --path /home/runner/work/esp-idf-template/esp-idf-template/github-esp-idf-template cargo --name test --vcs none --silent -d mcu=${{ matrix.target }} -d advanced=true -d espidfver=${{ matrix.esp-idf.name }} -d std=${{ matrix.std-config.std }} -d hal="${{ matrix.std-config.hal }}" -d devcontainer=false -d wokwi=false -d ci=false
run: cargo generate --path /home/runner/work/esp-idf-template/esp-idf-template/github-esp-idf-template cargo --name test --vcs none --silent -d mcu=${{ matrix.target }} -d advanced=true -d espidfver=${{ matrix.esp-idf.version }} -d std=${{ matrix.std-config.std }} -d hal="${{ matrix.std-config.hal }}" -d devcontainer=false -d wokwi=false -d ci=false
- name: Generate (No STD)
if: matrix.std-config.std == false
run: cargo generate --path /home/runner/work/esp-idf-template/esp-idf-template/github-esp-idf-template cargo --name test --vcs none --silent -d mcu=${{ matrix.target }} -d advanced=true -d espidfver=${{ matrix.esp-idf.name }} -d std=${{ matrix.std-config.std }} -d devcontainer=false -d wokwi=false -d ci=false
run: cargo generate --path /home/runner/work/esp-idf-template/esp-idf-template/github-esp-idf-template cargo --name test --vcs none --silent -d mcu=${{ matrix.target }} -d advanced=true -d espidfver=${{ matrix.esp-idf.version }} -d std=${{ matrix.std-config.std }} -d devcontainer=false -d wokwi=false -d ci=false
- name: Build | Fmt Check (RISC-V)
if: matrix.target != 'esp32' && matrix.target != 'esp32s2' && matrix.target != 'esp32s3'
run: cd test; cargo fmt -- --check
Expand All @@ -92,7 +91,7 @@ jobs:
- name: Build | Compile
run: cd test; cargo build
cargo-checks-v4:
name: "${{ matrix.target }} | ${{ matrix.esp-idf.name }} | std(hal):${{ matrix.std-config.std }}(${{ matrix.std-config.hal }})"
name: "${{ matrix.target }} | ${{ matrix.esp-idf.version }} | std(hal):${{ matrix.std-config.std }}(${{ matrix.std-config.hal }})"
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -107,8 +106,7 @@ jobs:
- std: true
hal: "Yes (all features)"
esp-idf:
- version: release/v4.4
name: v4.4
- version: v4.4
steps:
- name: Setup | Rust (RISC-V)
if: matrix.target != 'esp32' && matrix.target != 'esp32s2' && matrix.target != 'esp32s3'
Expand Down Expand Up @@ -149,10 +147,10 @@ jobs:
path: /home/runner/work/esp-idf-template/esp-idf-template/github-esp-idf-template
- name: Generate (STD)
if: matrix.std-config.std == true
run: cargo generate --path /home/runner/work/esp-idf-template/esp-idf-template/github-esp-idf-template cargo --name test --vcs none --silent -d mcu=${{ matrix.target }} -d advanced=true -d espidfver=${{ matrix.esp-idf.name }} -d std=${{ matrix.std-config.std }} -d hal="${{ matrix.std-config.hal }}" -d devcontainer=false -d wokwi=false -d ci=false
run: cargo generate --path /home/runner/work/esp-idf-template/esp-idf-template/github-esp-idf-template cargo --name test --vcs none --silent -d mcu=${{ matrix.target }} -d advanced=true -d espidfver=${{ matrix.esp-idf.version }} -d std=${{ matrix.std-config.std }} -d hal="${{ matrix.std-config.hal }}" -d devcontainer=false -d wokwi=false -d ci=false
- name: Generate (No STD)
if: matrix.std-config.std == false
run: cargo generate --path /home/runner/work/esp-idf-template/esp-idf-template/github-esp-idf-template cargo --name test --vcs none --silent -d mcu=${{ matrix.target }} -d advanced=true -d espidfver=${{ matrix.esp-idf.name }} -d std=${{ matrix.std-config.std }} -d devcontainer=false -d wokwi=false -d ci=false
run: cargo generate --path /home/runner/work/esp-idf-template/esp-idf-template/github-esp-idf-template cargo --name test --vcs none --silent -d mcu=${{ matrix.target }} -d advanced=true -d espidfver=${{ matrix.esp-idf.version }} -d std=${{ matrix.std-config.std }} -d devcontainer=false -d wokwi=false -d ci=false
- name: Build | Fmt Check (RISC-V)
if: matrix.target != 'esp32' && matrix.target != 'esp32s2' && matrix.target != 'esp32s3'
run: cd test; cargo fmt -- --check
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/ci_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:

jobs:
cmake-checks:
name: "${{ matrix.target.board }} | ${{ matrix.esp-idf.name }} | std(hal):${{ matrix.std-config.std }}(${{ matrix.std-config.hal }}))"
name: "${{ matrix.target.board }} | ${{ matrix.esp-idf.version }} | std(hal):${{ matrix.std-config.std }}(${{ matrix.std-config.hal }}))"
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -42,10 +42,8 @@ jobs:
- std: true
hal: "Yes (all features)"
esp-idf:
- version: release/v4.4
name: v4.4
- version: release/v5.1
name: v5.1
- version: v4.4
- version: v5.1
# - version: master
# name: master
steps:
Expand Down Expand Up @@ -89,10 +87,10 @@ jobs:
path: /home/runner/work/esp-idf-template/esp-idf-template/github-esp-idf-template
- name: Generate (STD)
if: matrix.std-config.std == true
run: cargo generate --path /home/runner/work/esp-idf-template/esp-idf-template/github-esp-idf-template cmake --name test --vcs none --silent -d toolchain=${{ matrix.target.toolchain }} -d std=${{ matrix.std-config.std }} -d espidfver=${{ matrix.esp-idf.name }} -d hal="${{ matrix.std-config.hal }}"
run: cargo generate --path /home/runner/work/esp-idf-template/esp-idf-template/github-esp-idf-template cmake --name test --vcs none --silent -d toolchain=${{ matrix.target.toolchain }} -d std=${{ matrix.std-config.std }} -d espidfver=${{ matrix.esp-idf.version }} -d hal="${{ matrix.std-config.hal }}"
- name: Generate (No STD)
if: matrix.std-config.std == false
run: cargo generate --path /home/runner/work/esp-idf-template/esp-idf-template/github-esp-idf-template cmake --name test --vcs none --silent -d toolchain=${{ matrix.target.toolchain }} -d std=${{ matrix.std-config.std }} -d espidfver=${{ matrix.esp-idf.name }}
run: cargo generate --path /home/runner/work/esp-idf-template/esp-idf-template/github-esp-idf-template cmake --name test --vcs none --silent -d toolchain=${{ matrix.target.toolchain }} -d std=${{ matrix.std-config.std }} -d espidfver=${{ matrix.esp-idf.version }}
- name: ESP-IDF | Checkout
run: git clone https://github.com/espressif/esp-idf; git -C esp-idf checkout ${{ matrix.esp-idf.version }}
- name: ESP-IDF | Install Tooling
Expand Down
4 changes: 2 additions & 2 deletions cargo/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ build-std = ["core", "alloc", "panic_abort"]
[env]
# Note: these variables are not used when using pio builder (`cargo build --features pio`)
{%- if espidfver == "v4.4" %}
ESP_IDF_VERSION = "release/v4.4"
ESP_IDF_VERSION = "v4.4.5"
{% elsif espidfver == "v5.1" %}
ESP_IDF_VERSION = "release/v5.1"
ESP_IDF_VERSION = "v5.1"
{% elsif espidfver == "master" %}
ESP_IDF_VERSION = "master"
{% endif %}

0 comments on commit 9a56eef

Please sign in to comment.