File tree 2 files changed +9
-5
lines changed
.github/actions/pio-build
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
5
5
ENV LC_ALL C.UTF-8
6
6
7
7
# 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
9
9
10
- # Install PlatformIO
11
- RUN pip3 install --quiet --upgrade platformio
12
10
CMD /bin/bash
13
11
14
12
# Copies your code file from your action repository to the filesystem path `/` of the container
15
13
COPY entrypoint.sh /entrypoint.sh
16
14
17
15
# 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
2
2
3
3
readonly CMSIS_VERSION=" $1 "
4
4
readonly CMSIS_ARCHIVE=" CMSIS-${CMSIS_VERSION} .tar.bz2"
5
5
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
+
6
12
# Install the development version of ststm32 platform
7
13
platformio platform install " https://github.com/platformio/platform-ststm32.git" || {
8
14
exit 1
You can’t perform that action at this time.
0 commit comments