Skip to content

Commit

Permalink
Test esp-idf v5.4-rc1 in sim_test
Browse files Browse the repository at this point in the history
Future proof logic around esp32p4/h2, so they are expanded for a full_sim_test.

Includes upstream changes from main, that is currently not on release-0.6. So there is a little nuisance there.

Signed-off-by: Peter M <petermm@gmail.com>
  • Loading branch information
petermm committed Dec 28, 2024
1 parent 0e991df commit f8dab72
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/esp32-simtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,26 @@ jobs:
fail-fast: false
# focus on device diversity.
matrix:
esp-idf-target: ["esp32", "esp32s2", "esp32s3", "esp32c3", "esp32c6"]
idf-version: ${{ ((contains(github.event.head_commit.message, 'full_sim_test')||contains(github.event.pull_request.title, 'full_sim_test')) && fromJSON('["v5.1.5", "v5.2.3", "v5.3.2", "v5.4-beta1"]')) || fromJSON('["v5.3.2"]') }}
include:
esp-idf-target:
[
"esp32",
"esp32s2",
"esp32s3",
"esp32c3",
"esp32c6",
"esp32h2",
"esp32p4",
]
idf-version: ${{ ((contains(github.event.head_commit.message, 'full_sim_test')||contains(github.event.pull_request.title, 'full_sim_test')) && fromJSON('["v5.1.5", "v5.2.3", "v5.3.2", "v5.4-rc1"]')) || fromJSON('["v5.3.2"]') }}
exclude:
- esp-idf-target: "esp32p4"
idf-version: "v5.3.2"
idf-version: "v5.1.5"
- esp-idf-target: "esp32p4"
idf-version: "v5.2.3"
- esp-idf-target: "esp32h2"
idf-version: "v5.1.5"
- esp-idf-target: "esp32h2"
idf-version: "v5.3.2"
idf-version: "v5.2.3"

steps:
- name: Checkout repo
Expand All @@ -76,9 +89,14 @@ jobs:
set -eu
apt update
DEBIAN_FRONTEND=noninteractive apt install -y -q \
doxygen erlang-base erlang-dialyzer \
doxygen erlang-base erlang-dev erlang-dialyzer erlang-eunit \
erlang-asn1 erlang-common-test erlang-crypto erlang-edoc \
erlang-parsetools erlang-reltool erlang-syntax-tools erlang-tools \
libglib2.0-0 libpixman-1-0 \
gcc g++ zlib1g-dev libsdl2-2.0-0 libslirp0 libmbedtls-dev
wget --no-verbose https://github.com/erlang/rebar3/releases/download/3.18.0/rebar3
chmod +x rebar3
./rebar3 local install
- name: Install the Wokwi CLI
run: curl -L https://wokwi.com/ci/install.sh | sh
Expand All @@ -97,6 +115,7 @@ jobs:
working-directory: ./src/platforms/esp32/test/
run: |
set -e
export PATH=${PATH}:${HOME}/.cache/rebar3/bin
. $IDF_PATH/export.sh
idf.py -DSDKCONFIG_DEFAULTS='sdkconfig.ci.wokwi' set-target ${{matrix.esp-idf-target}}
idf.py build
Expand Down

0 comments on commit f8dab72

Please sign in to comment.