File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
.github/actions/pio-build Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,12 @@ ENV LANG C.UTF-8
55ENV LC_ALL C.UTF-8
66
77# Install prerequisites
8- RUN apt-get --quiet=2 update && apt-get install --quiet=2 --assume-yes git python3 python3-pip wget
8+ RUN apt-get --quiet=2 update && apt-get install --quiet=2 --assume-yes git python3 python3-pip python3-venv wget
99
10- # Install PlatformIO
11- RUN pip3 install --quiet --upgrade platformio
1210CMD /bin/bash
1311
1412# Copies your code file from your action repository to the filesystem path `/` of the container
1513COPY entrypoint.sh /entrypoint.sh
1614
1715# Code file to execute when the docker container starts up (`entrypoint.sh`)
18- ENTRYPOINT ["/entrypoint.sh" ]
16+ ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/sh
22
33readonly CMSIS_VERSION=" $1 "
44readonly CMSIS_ARCHIVE=" CMSIS-${CMSIS_VERSION} .tar.bz2"
55
6+ # Use python venv
7+ python3 -m venv " $HOME /venv"
8+ . " $HOME /venv/bin/activate"
9+ # Install PlatformIO
10+ python3 -m pip install --quiet --upgrade platformio
11+
612# Install the development version of ststm32 platform
713platformio platform install " https://github.com/platformio/platform-ststm32.git" || {
814 exit 1
You can’t perform that action at this time.
0 commit comments