Skip to content

Commit a7a30ee

Browse files
committed
Trigger container build
1 parent 29544aa commit a7a30ee

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/build-containers.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ name: Build Container Images
22

33
on:
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
@@ -51,6 +56,7 @@ jobs:
5156
zephyr:
5257
- containers/base/**
5358
- containers/zephyr/**
59+
- ports/zephyr-cp/zephyr-config/**
5460
- requirements-dev.txt
5561
dev:
5662
- containers/**

containers/base/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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)
1213
RUN wget -q https://github.com/dosfstools/dosfstools/releases/download/v4.2/dosfstools-4.2.tar.gz \

containers/zephyr/Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
77

88
RUN 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
1711
COPY ports/zephyr-cp/zephyr-config/west.yml /circuitpython/ports/zephyr-cp/zephyr-config/west.yml
1812
WORKDIR /circuitpython/ports/zephyr-cp
1913
RUN west init -l zephyr-config && west update
2014
RUN west zephyr-export
15+
16+
# Zephyr SDK via west
17+
RUN west sdk install
2118
WORKDIR /circuitpython

0 commit comments

Comments
 (0)