Compare commits
2 Commits
b3c41668a2
...
492a5beba4
Author | SHA1 | Date |
---|---|---|
Earle F. Philhower, III | 492a5beba4 | |
Earle F. Philhower, III | 89a5a07712 |
|
@ -20,10 +20,10 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
chunk: [0, 1, 2, 3, 4]
|
chunk: [0, 1, 2, 3, 4]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- name: Build Sketches
|
- name: Build Sketches
|
||||||
|
@ -43,10 +43,10 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
chunk: [0, 1, 2, 3, 4]
|
chunk: [0, 1, 2, 3, 4]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- name: Build Sketches
|
- name: Build Sketches
|
||||||
|
@ -66,10 +66,10 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
chunk: [0, 1, 2, 3, 4]
|
chunk: [0, 1, 2, 3, 4]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- name: Build Sketches
|
- name: Build Sketches
|
||||||
|
@ -87,10 +87,10 @@ jobs:
|
||||||
name: Host tests
|
name: Host tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- name: Run host tests
|
- name: Run host tests
|
||||||
|
@ -115,7 +115,7 @@ jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- uses: arduino/arduino-lint-action@v1
|
- uses: arduino/arduino-lint-action@v1
|
||||||
with:
|
with:
|
||||||
library-manager: 'update'
|
library-manager: 'update'
|
||||||
|
@ -128,7 +128,7 @@ jobs:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Run codespell
|
- name: Run codespell
|
||||||
|
|
|
@ -70,23 +70,13 @@ function install_esp32()
|
||||||
local ide_path=$1
|
local ide_path=$1
|
||||||
pip install pyserial
|
pip install pyserial
|
||||||
pip3 install pyserial
|
pip3 install pyserial
|
||||||
cd $ide_path/hardware
|
mkdir -p ~/bin
|
||||||
mkdir espressif
|
pushd ~/bin
|
||||||
cd espressif
|
wget -q https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_64bit.tar.gz
|
||||||
git clone https://github.com/espressif/arduino-esp32.git esp32
|
tar xvf arduino-cli_latest_Linux_64bit.tar.gz
|
||||||
pushd esp32
|
export PATH=$PATH:$PWD
|
||||||
# Set custom warnings for all builds
|
|
||||||
|
|
||||||
echo "compiler.c.extra_flags=-Wall -Wextra -Werror $debug_flags" > platform.local.txt
|
|
||||||
echo "compiler.cpp.extra_flags=-Wall -Wextra -Werror $debug_flags" >> platform.local.txt
|
|
||||||
echo -e "\n----platform.local.txt----"
|
|
||||||
cat platform.local.txt
|
|
||||||
git submodule update --init
|
|
||||||
cd tools
|
|
||||||
python3 get.py
|
|
||||||
export PATH="$ide_path/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/:$PATH"
|
|
||||||
popd
|
popd
|
||||||
cd esp32
|
arduino-cli core install --additional-urls https://espressif.github.io/arduino-esp32/package_esp32_index.json esp32:esp32
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_arduino()
|
function install_arduino()
|
||||||
|
@ -99,6 +89,20 @@ function install_arduino()
|
||||||
install_libraries
|
install_libraries
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function skip_esp32()
|
||||||
|
{
|
||||||
|
local ino=$1
|
||||||
|
local skiplist=""
|
||||||
|
# Add items to the following list with "\n" netween them to skip running. No spaces, tabs, etc. allowed
|
||||||
|
read -d '' skiplist << EOL || true
|
||||||
|
/MixerSample/
|
||||||
|
EOL
|
||||||
|
echo $ino | grep -q -F "$skiplist"
|
||||||
|
echo $(( 1 - $? ))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ "$BUILD_MOD" == "" ]; then
|
if [ "$BUILD_MOD" == "" ]; then
|
||||||
export BUILD_MOD=1
|
export BUILD_MOD=1
|
||||||
export BUILD_REM=0
|
export BUILD_REM=0
|
||||||
|
@ -117,10 +121,18 @@ if [ "$BUILD_TYPE" = "build" ]; then
|
||||||
elif [ "$BUILD_TYPE" = "build_esp32" ]; then
|
elif [ "$BUILD_TYPE" = "build_esp32" ]; then
|
||||||
install_arduino
|
install_arduino
|
||||||
install_esp32 "$HOME/arduino_ide"
|
install_esp32 "$HOME/arduino_ide"
|
||||||
export FQBN="espressif:esp32:esp32:PSRAM=enabled,PartitionScheme=huge_app"
|
export testcnt=0
|
||||||
mkdir -p "$GITHUB_WORKSPACE/hardware"
|
for i in $(find ~/Arduino/libraries/ESP8266Audio -name "*.ino"); do
|
||||||
ln -s "$GITHUB_WORKSPACE/../" "$GITHUB_WORKSPACE/libraries"
|
testcnt=$(( ($testcnt + 1) % $BUILD_MOD ))
|
||||||
source "$HOME/arduino_ide/hardware/espressif/esp32/.github/scripts/sketch_utils.sh" chunk_build -ai "$HOME/arduino_ide" -au "$GITHUB_WORKSPACE" -fqbn "$FQBN" -t esp32 -p "$GITHUB_WORKSPACE" -i $BUILD_REM -m $BUILD_MOD
|
if [ $testcnt -ne $BUILD_REM ]; then
|
||||||
|
continue # Not ours to do
|
||||||
|
fi
|
||||||
|
if [[ $(skip_esp32 $i) = 1 ]]; then
|
||||||
|
echo -e "\n ------------ Skipping $i ------------ \n";
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
arduino-cli compile --fqbn esp32:esp32:esp32 --warnings all $i
|
||||||
|
done
|
||||||
elif [ "$BUILD_TYPE" = "build_rp2040" ]; then
|
elif [ "$BUILD_TYPE" = "build_rp2040" ]; then
|
||||||
install_arduino
|
install_arduino
|
||||||
install_rp2040 "$HOME/arduino_ide"
|
install_rp2040 "$HOME/arduino_ide"
|
||||||
|
|
Loading…
Reference in New Issue