File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,12 @@ name: Build Container Images
22
33on :
44 push :
5- branches : [main]
5+ branches : [main, containerize]
6+ paths :
7+ - containers/**
8+ - requirements-dev.txt
9+ - .github/workflows/build-containers.yml
10+ pull_request :
611 paths :
712 - containers/**
813 - requirements-dev.txt
5156 zephyr:
5257 - containers/base/**
5358 - containers/zephyr/**
59+ - ports/zephyr-cp/zephyr-config/**
5460 - requirements-dev.txt
5561 dev:
5662 - containers/**
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
66 build-essential cmake mtools uncrustify \
77 gettext wget curl ca-certificates \
88 pkg-config autoconf automake libtool \
9- && rm -rf /var/lib/apt/lists/*
9+ && rm -rf /var/lib/apt/lists/* \
10+ && update-alternatives --install /usr/bin/python python /usr/bin/python3 1
1011
1112# dosfstools 4.2 (newer than apt's 4.1)
1213RUN wget -q https://github.com/dosfstools/dosfstools/releases/download/v4.2/dosfstools-4.2.tar.gz \
Original file line number Diff line number Diff line change @@ -7,15 +7,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
77
88RUN pip install --break-system-packages west
99
10- # Zephyr SDK
11- RUN wget -qO- "https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.17.0/zephyr-sdk-0.17.0_linux-x86_64.tar.xz" \
12- | tar xJ -C /opt/ \
13- && /opt/zephyr-sdk-0.17.0/setup.sh -t arm-zephyr-eabi
14- ENV ZEPHYR_SDK_INSTALL_DIR=/opt/zephyr-sdk-0.17.0
15-
1610# West workspace — pins come from zephyr-config/west.yml
1711COPY ports/zephyr-cp/zephyr-config/west.yml /circuitpython/ports/zephyr-cp/zephyr-config/west.yml
1812WORKDIR /circuitpython/ports/zephyr-cp
1913RUN west init -l zephyr-config && west update
2014RUN west zephyr-export
15+
16+ # Zephyr SDK via west
17+ RUN west sdk install
2118WORKDIR /circuitpython
You can’t perform that action at this time.
0 commit comments