[CI] Switched to outputs CI_FORCE_BUILD

This commit is contained in:
Jan Gromeš 2020-08-22 13:16:31 +02:00 committed by GitHub
parent d8f6067105
commit 2fc99be800
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,19 +44,19 @@ jobs:
warnings: 'all' warnings: 'all'
run: | run: |
if [[ "${{ contains(matrix.board, 'esp8266') }}" == "true" ]]; then if [[ "${{ contains(matrix.board, 'esp8266') }}" == "true" ]]; then
echo "::set-env name=skip-path::'HTTP|MQTT).*ino'" echo "::set-output name=skip-path::'HTTP|MQTT).*ino'"
echo "::set-env 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'"
else else
echo "::set-env name=skip-path::''" echo "::set-output name=skip-path::''"
echo "::set-env name=index-url::''" echo "::set-output name=index-url::''"
fi fi
- name: Install platform - name: Install platform
if: ${{ env.run-build == 'true' }} if: ${{ env.run-build == 'true' }}
run: | run: |
arduino-cli core update-index ${{ steps.prep.env.index-url }} arduino-cli core update-index ${{ steps.prep.outputs.index-url }}
arduino-cli core install ${{ format('{0}:{1}', steps.split.outputs._0, steps.split.outputs._1) }} arduino-cli core install ${{ format('{0}:{1}', steps.split.outputs._0, steps.split.outputs._1) }}
- name: Checkout repository - name: Checkout repository
@ -68,9 +68,9 @@ jobs:
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
if [ ! -z "${{ steps.prep.env.skip-path }}" ] && [[ ${example} =~ "${{ steps.prep.env.skip-path }}" ]]; then if [ ! -z "${{ steps.prep.outputs.skip-path }}" ] && [[ ${example} =~ "${{ steps.prep.outputs.skip-path }}" ]]; then
# skip sketch # skip sketch
echo -e "\n\033[1;33mSkipped ${example##*/} (matched with ${{ steps.prep.env.skip-path }})\033[0m"; echo -e "\n\033[1;33mSkipped ${example##*/} (matched with ${{ steps.prep.outputs.skip-path }})\033[0m";
else else
# build sketch # build sketch
echo -e "\n\033[1;33mBuilding ${example##*/} ... \033[0m"; echo -e "\n\033[1;33mBuilding ${example##*/} ... \033[0m";