[CI] Fixed options (CI_BUILD_ALL)
This commit is contained in:
parent
39aac172a4
commit
b78693b8fb
1 changed files with 7 additions and 7 deletions
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
|
@ -72,15 +72,15 @@ jobs:
|
||||||
# platform-dependent settings - extra board options, board index URLs, skip patterns etc.
|
# platform-dependent settings - extra board options, board index URLs, skip patterns etc.
|
||||||
if [[ "${{ contains(matrix.board, 'arduino:avr:mega') }}" == "true" ]]; then
|
if [[ "${{ contains(matrix.board, 'arduino:avr:mega') }}" == "true" ]]; then
|
||||||
# Arduino Mega
|
# Arduino Mega
|
||||||
echo "options='cpu=atmega2560'" >> $GITHUB_OUTPUT
|
echo "options=':cpu=atmega2560'" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
elif [[ "${{ contains(matrix.board, 'arduino:megaavr:uno2018') }}" == "true" ]]; then
|
elif [[ "${{ contains(matrix.board, 'arduino:megaavr:uno2018') }}" == "true" ]]; then
|
||||||
# Arduino Uno WiFi
|
# Arduino Uno WiFi
|
||||||
echo "options='mode=on'" >> $GITHUB_OUTPUT
|
echo "options=':mode=on'" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
elif [[ "${{ contains(matrix.board, 'adafruit:samd') }}" == "true" ]]; then
|
elif [[ "${{ contains(matrix.board, 'adafruit:samd') }}" == "true" ]]; then
|
||||||
# Adafruit SAMD
|
# Adafruit SAMD
|
||||||
echo "options='usbstack=arduino,debug=off'" >> $GITHUB_OUTPUT
|
echo "options=':usbstack=arduino,debug=off'" >> $GITHUB_OUTPUT
|
||||||
echo "index-url=--additional-urls https://adafruit.github.io/arduino-board-index/package_adafruit_index.json" >> $GITHUB_OUTPUT
|
echo "index-url=--additional-urls https://adafruit.github.io/arduino-board-index/package_adafruit_index.json" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
elif [[ "${{ contains(matrix.board, 'adafruit:nrf52') }}" == "true" ]]; then
|
elif [[ "${{ contains(matrix.board, 'adafruit:nrf52') }}" == "true" ]]; then
|
||||||
|
@ -90,7 +90,7 @@ jobs:
|
||||||
pip3 install wheel
|
pip3 install wheel
|
||||||
pip3 install --user adafruit-nrfutil
|
pip3 install --user adafruit-nrfutil
|
||||||
echo "/home/runner/.local/bin" >> $GITHUB_PATH
|
echo "/home/runner/.local/bin" >> $GITHUB_PATH
|
||||||
echo "options='softdevice=s132v6,debug=l0'" >> $GITHUB_OUTPUT
|
echo "options=':softdevice=s132v6,debug=l0'" >> $GITHUB_OUTPUT
|
||||||
echo "index-url=--additional-urls https://adafruit.github.io/arduino-board-index/package_adafruit_index.json" >> $GITHUB_OUTPUT
|
echo "index-url=--additional-urls https://adafruit.github.io/arduino-board-index/package_adafruit_index.json" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
elif [[ "${{ contains(matrix.board, 'esp32:esp32') }}" == "true" ]]; then
|
elif [[ "${{ contains(matrix.board, 'esp32:esp32') }}" == "true" ]]; then
|
||||||
|
@ -100,7 +100,7 @@ jobs:
|
||||||
|
|
||||||
elif [[ "${{ contains(matrix.board, 'esp8266:esp8266') }}" == "true" ]]; then
|
elif [[ "${{ contains(matrix.board, 'esp8266:esp8266') }}" == "true" ]]; then
|
||||||
# ESP8266
|
# ESP8266
|
||||||
echo "options='xtal=80,ResetMethod=ck,CrystalFreq=26,FlashFreq=40,FlashMode=qio,eesz=512K'" >> $GITHUB_OUTPUT
|
echo "options=':xtal=80,ResetMethod=ck,CrystalFreq=26,FlashFreq=40,FlashMode=qio,eesz=512K'" >> $GITHUB_OUTPUT
|
||||||
echo "index-url=--additional-urls http://arduino.esp8266.com/stable/package_esp8266com_index.json" >> $GITHUB_OUTPUT
|
echo "index-url=--additional-urls http://arduino.esp8266.com/stable/package_esp8266com_index.json" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
elif [[ "${{ contains(matrix.board, 'SparkFun:apollo3') }}" == "true" ]]; then
|
elif [[ "${{ contains(matrix.board, 'SparkFun:apollo3') }}" == "true" ]]; then
|
||||||
|
@ -119,7 +119,7 @@ jobs:
|
||||||
|
|
||||||
elif [[ "${{ contains(matrix.board, 'stm32duino:STM32F1') }}" == "true" ]]; then
|
elif [[ "${{ contains(matrix.board, 'stm32duino:STM32F1') }}" == "true" ]]; then
|
||||||
# STM32 (unofficial core)
|
# STM32 (unofficial core)
|
||||||
echo "options='bootloader_version=original,cpu_speed=speed_72mhz'" >> $GITHUB_OUTPUT
|
echo "options=':bootloader_version=original,cpu_speed=speed_72mhz'" >> $GITHUB_OUTPUT
|
||||||
echo "index-url=--additional-urls http://dan.drown.org/stm32duino/package_STM32duino_index.json" >> $GITHUB_OUTPUT
|
echo "index-url=--additional-urls http://dan.drown.org/stm32duino/package_STM32duino_index.json" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
elif [[ "${{ contains(matrix.board, 'MegaCoreX:megaavr') }}" == "true" ]]; then
|
elif [[ "${{ contains(matrix.board, 'MegaCoreX:megaavr') }}" == "true" ]]; then
|
||||||
|
@ -167,7 +167,7 @@ jobs:
|
||||||
else
|
else
|
||||||
# build sketch
|
# build sketch
|
||||||
echo -e "\n\033[1;33mBuilding ${example##*/} ... \033[0m";
|
echo -e "\n\033[1;33mBuilding ${example##*/} ... \033[0m";
|
||||||
arduino-cli compile --libraries /home/runner/work/RadioLib --fqbn ${{ matrix.board }}:${{ steps.prep.outputs.options }} $example --warnings=${{ steps.prep.outputs.warnings }}
|
arduino-cli compile --libraries /home/runner/work/RadioLib --fqbn ${{ matrix.board }}${{ steps.prep.outputs.options }} $example --warnings=${{ steps.prep.outputs.warnings }}
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo -e "\033[1;31m${example##*/} build FAILED\033[0m\n";
|
echo -e "\033[1;31m${example##*/} build FAILED\033[0m\n";
|
||||||
exit 1;
|
exit 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue