Skip to content

Commit b875e60

Browse files
committed
Merge pull request #2001 from pguyot/w48/set-otp-and-elixir-versions-for-esp32-build
Set OTP and Elixir version for esp32 CI builds These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 522c916 + 5549646 commit b875e60

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/esp32-build.yaml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
idf.py set-target ${{matrix.esp-idf-target}}
8686
idf.py build
8787
idf.py size
88+
8889
- name: Print component size info with idf.py
8990
shell: bash
9091
working-directory: ./src/platforms/esp32/
@@ -100,15 +101,23 @@ jobs:
100101
set -eu
101102
apt update
102103
DEBIAN_FRONTEND=noninteractive apt install -y -q \
103-
doxygen erlang-base erlang-dev erlang-dialyzer erlang-eunit \
104-
erlang-asn1 erlang-common-test erlang-crypto erlang-edoc \
105-
erlang-parsetools erlang-reltool erlang-syntax-tools erlang-tools \
106-
libglib2.0-0 libpixman-1-0 \
104+
doxygen libglib2.0-0 libpixman-1-0 \
107105
gcc g++ zlib1g-dev libsdl2-2.0-0 libslirp0 libmbedtls-dev
108-
# ESP-IDF 5.0.7 comes with Ubuntu focal which has Erlang/OTP 22
109-
wget --no-verbose https://github.com/erlang/rebar3/releases/download/3.18.0/rebar3
110-
chmod +x rebar3
111-
./rebar3 local install
106+
107+
- name: "Set ImageOS for erlef/setup-beam"
108+
run: |
109+
sed -n -E -e 's|VERSION_ID="(.+)\..+"|ImageOS=ubuntu\1|p' /etc/os-release >> ${GITHUB_ENV}
110+
111+
- uses: erlef/setup-beam@v1
112+
with:
113+
otp-version: "28"
114+
elixir-version: "1.19"
115+
rebar3-version: "3.25.1"
116+
gleam-version: "1.11.1"
117+
hexpm-mirrors: |
118+
https://builds.hex.pm
119+
https://repo.hex.pm
120+
https://cdn.jsdelivr.net/hex
112121
113122
- name: Install qemu binary from espressif/qemu esp32
114123
if: runner.arch != 'ARM64' && runner.os == 'Linux' && matrix.esp-idf-target == 'esp32'

0 commit comments

Comments
 (0)