mirror of
https://github.com/micropython/micropython.git
synced 2026-01-09 05:30:27 +01:00
github/workflows: Add workflow to build and test javascript port.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
18
tools/ci.sh
18
tools/ci.sh
@@ -138,6 +138,24 @@ function ci_esp8266_build {
|
||||
make ${MAKEOPTS} -C ports/esp8266 BOARD=GENERIC_1M
|
||||
}
|
||||
|
||||
########################################################################################
|
||||
# ports/javascript
|
||||
|
||||
function ci_javascript_setup {
|
||||
git clone https://github.com/emscripten-core/emsdk.git
|
||||
(cd emsdk && ./emsdk install latest && ./emsdk activate latest)
|
||||
}
|
||||
|
||||
function ci_javascript_build {
|
||||
source emsdk/emsdk_env.sh
|
||||
make ${MAKEOPTS} -C ports/javascript
|
||||
}
|
||||
|
||||
function ci_javascript_run_tests {
|
||||
# This port is very slow at running, so only run a few of the tests.
|
||||
(cd tests && MICROPY_MICROPYTHON=../ports/javascript/node_run.sh ./run-tests.py -j1 basics/builtin_*.py)
|
||||
}
|
||||
|
||||
########################################################################################
|
||||
# ports/mimxrt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user