[CI] Use absolute path (adafruit:nrf52:feather52832)

This commit is contained in:
jgromes 2020-08-22 18:23:15 +02:00
parent 52c5275a9f
commit 4735e41109

View file

@ -21,7 +21,7 @@ jobs:
- STM32:stm32:GenF3 - STM32:stm32:GenF3
- arduino:samd:arduino_zero_native - arduino:samd:arduino_zero_native
- arduino:sam:arduino_due_x - arduino:sam:arduino_due_x
# - adafruit:nrf52:feather52832 - adafruit:nrf52:feather52832
- Intel:arc32:arduino_101 - Intel:arc32:arduino_101
- arduino:megaavr:uno2018 - arduino:megaavr:uno2018
- SparkFun:apollo3:amap3redboard - SparkFun:apollo3:amap3redboard
@ -38,7 +38,7 @@ jobs:
steps: steps:
- name: Install arduino-cli - name: Install arduino-cli
if: ${{ env.run-build == 'true' }} if: ${{ env.run-build == 'true' }}
run: run:
| |
mkdir -p ~/.local/bin mkdir -p ~/.local/bin
echo "::add-path::~/.local/bin" echo "::add-path::~/.local/bin"
@ -55,7 +55,7 @@ jobs:
- name: Prepare platform-specific settings - name: Prepare platform-specific settings
if: ${{ env.run-build == 'true' }} if: ${{ env.run-build == 'true' }}
id: prep id: prep
run: run:
| |
# common settings - no extra options, skip nothing, all warnings # common settings - no extra options, skip nothing, all warnings
echo "::set-output name=options::" echo "::set-output name=options::"
@ -65,7 +65,7 @@ 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
echo "::set-output name=options:::cpu=atmega2560" echo "::set-output name=options:::cpu=atmega2560"
elif [[ "${{ contains(matrix.board, 'esp8266:esp8266') }}" == "true" ]]; then elif [[ "${{ contains(matrix.board, 'esp8266:esp8266') }}" == "true" ]]; then
echo "::set-output name=options:::xtal=80,ResetMethod=ck,CrystalFreq=26,FlashFreq=40,FlashMode=qio,eesz=512K" echo "::set-output name=options:::xtal=80,ResetMethod=ck,CrystalFreq=26,FlashFreq=40,FlashMode=qio,eesz=512K"
echo "::set-output name=index-url::--additional-urls http://arduino.esp8266.com/stable/package_esp8266com_index.json" echo "::set-output name=index-url::--additional-urls http://arduino.esp8266.com/stable/package_esp8266com_index.json"
@ -84,10 +84,10 @@ jobs:
sudo apt-get install -y python3 python3-pip python3-setuptools sudo apt-get install -y python3 python3-pip python3-setuptools
pip3 install wheel pip3 install wheel
pip3 install --user adafruit-nrfutil pip3 install --user adafruit-nrfutil
echo "::add-path::~/.local/bin" echo "::add-path::/home/runner/.local/bin"
echo "::set-output name=options:::softdevice=s132v6,debug=l0" echo "::set-output name=options:::softdevice=s132v6,debug=l0"
echo "::set-output name=index-url::--additional-urls https://www.adafruit.com/package_adafruit_index.json" echo "::set-output name=index-url::--additional-urls https://www.adafruit.com/package_adafruit_index.json"
elif [[ "${{ contains(matrix.board, 'arduino:megaavr:uno2018') }}" == "true" ]]; then elif [[ "${{ contains(matrix.board, 'arduino:megaavr:uno2018') }}" == "true" ]]; then
echo "::set-output name=options:::mode=on" echo "::set-output name=options:::mode=on"
@ -113,7 +113,7 @@ jobs:
- name: Install platform - name: Install platform
if: ${{ env.run-build == 'true' }} if: ${{ env.run-build == 'true' }}
run: run:
| |
arduino-cli core update-index ${{ format('{0}', steps.prep.outputs.index-url) }} arduino-cli core update-index ${{ format('{0}', steps.prep.outputs.index-url) }}
arduino-cli core install ${{ format('{0}:{1} {2}', steps.split.outputs._0, steps.split.outputs._1, steps.prep.outputs.index-url) }} arduino-cli core install ${{ format('{0}:{1} {2}', steps.split.outputs._0, steps.split.outputs._1, steps.prep.outputs.index-url) }}
@ -124,7 +124,7 @@ jobs:
- name: Build examples - name: Build examples
if: ${{ env.run-build == 'true' }} if: ${{ env.run-build == 'true' }}
run: run:
| |
for example in $(find $PWD/examples -name '*.ino' | sort); do for example in $(find $PWD/examples -name '*.ino' | sort); do
# check whether to skip this sketch # check whether to skip this sketch