-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade micropython tests to use v1.22, initial circuitpython work
- Loading branch information
1 parent
84842e3
commit 79452a4
Showing
9 changed files
with
48 additions
and
87 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG VERSION=master | ||
ENV VERSION=$VERSION | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y build-essential libffi-dev git pkg-config python3 && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
git clone https://github.com/micropython/micropython.git && \ | ||
cd micropython && \ | ||
git checkout $VERSION && \ | ||
git submodule update --init && \ | ||
cd mpy-cross && \ | ||
make && \ | ||
cd .. && \ | ||
cd ports/unix && \ | ||
make && \ | ||
make test && \ | ||
make install && \ | ||
apt-get purge --auto-remove -y build-essential libffi-dev git pkg-config python3 && \ | ||
cd ../../.. && \ | ||
rm -rf micropython | ||
|
||
CMD ["/usr/local/bin/micropython"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG VERSION=main | ||
ENV VERSION=$VERSION | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y build-essential libffi-dev git pkg-config python3 && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
git clone https://github.com/adafruit/circuitpython.git && \ | ||
cd circuitpython && \ | ||
git checkout $VERSION && \ | ||
git submodule update --init lib tools frozen && \ | ||
cd mpy-cross && \ | ||
make && \ | ||
cd .. && \ | ||
cd ports/unix && \ | ||
make && \ | ||
make install && \ | ||
apt-get purge --auto-remove -y build-essential libffi-dev git pkg-config python3 && \ | ||
cd ../../.. && \ | ||
rm -rf circuitpython | ||
|
||
CMD ["/usr/local/bin/micropython"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
# this script updates the micropython binary in the /bin directory that is | ||
# used to run unit tests under GitHub Actions builds | ||
|
||
DOCKER=${DOCKER:-docker} | ||
VERSION=${1:-main} | ||
|
||
$DOCKER build -f Dockerfile.circuitpython --build-arg VERSION=$VERSION -t circuitpython . | ||
$DOCKER create -t --name dummy-circuitpython circuitpython | ||
$DOCKER cp dummy-circuitpython:/usr/local/bin/micropython ../bin/circuitpython | ||
$DOCKER rm dummy-circuitpython |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters