kopia lustrzana https://github.com/pimoroni/pimoroni-pico
CI: Try to ccache mpy-cross
rodzic
b6953c25a1
commit
bd6bd289d1
|
@ -73,12 +73,17 @@ jobs:
|
||||||
- name: Install CCache
|
- name: Install CCache
|
||||||
run: |
|
run: |
|
||||||
source $BUILD_TOOLS
|
source $BUILD_TOOLS
|
||||||
build_deps
|
apt_install_build_deps
|
||||||
|
|
||||||
- name: Checkout MicroPython & Submodules
|
- name: Checkout MicroPython & Submodules
|
||||||
run: |
|
run: |
|
||||||
source $BUILD_TOOLS
|
source $BUILD_TOOLS
|
||||||
clone_micropython
|
micropython_clone
|
||||||
|
|
||||||
|
- name: Build MPY Cross
|
||||||
|
run: |
|
||||||
|
source $BUILD_TOOLS
|
||||||
|
micropython_build_mpy_cross
|
||||||
|
|
||||||
- name: "HACK: CMakeLists.txt Disable C++ Exceptions Patch"
|
- name: "HACK: CMakeLists.txt Disable C++ Exceptions Patch"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
@ -12,7 +12,7 @@ function log_warning {
|
||||||
echo -e "$(tput setaf 1)$1$(tput sgr0)"
|
echo -e "$(tput setaf 1)$1$(tput sgr0)"
|
||||||
}
|
}
|
||||||
|
|
||||||
function clone_micropython {
|
function micropython_clone {
|
||||||
log_inform "Using MicroPython $MICROPYTHON_VERSION"
|
log_inform "Using MicroPython $MICROPYTHON_VERSION"
|
||||||
git clone https://github.com/micropython/micropython --depth=1 --branch=$MICROPYTHON_VERSION
|
git clone https://github.com/micropython/micropython --depth=1 --branch=$MICROPYTHON_VERSION
|
||||||
cd micropython
|
cd micropython
|
||||||
|
@ -23,12 +23,18 @@ function clone_micropython {
|
||||||
git submodule update --init lib/micropython-lib
|
git submodule update --init lib/micropython-lib
|
||||||
git submodule update --init lib/tinyusb
|
git submodule update --init lib/tinyusb
|
||||||
git submodule update --init lib/btstack
|
git submodule update --init lib/btstack
|
||||||
cd mpy-cross
|
cd ../
|
||||||
make
|
}
|
||||||
|
|
||||||
|
function micropython_build_mpy_cross {
|
||||||
|
cd micropython/mpy-cross
|
||||||
|
ccache --zero-stats || true
|
||||||
|
CROSS_COMPILE="ccache " make
|
||||||
|
ccache --show-stats || true
|
||||||
cd ../../
|
cd ../../
|
||||||
}
|
}
|
||||||
|
|
||||||
function build_deps {
|
function apt_install_build_deps {
|
||||||
sudo apt update && sudo apt install ccache
|
sudo apt update && sudo apt install ccache
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue