[CI] skip fix CI_FORCE_BUILD
This commit is contained in:
parent
6d3759412b
commit
329ff2f421
1 changed files with 3 additions and 2 deletions
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
|
@ -50,9 +50,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
warnings: 'all'
|
warnings: 'all'
|
||||||
run: |
|
run: |
|
||||||
|
echo "::set-output name=skip-path::''"
|
||||||
if [[ "${{ contains(matrix.board, 'esp8266:esp8266') }}" == "true" ]]; then
|
if [[ "${{ contains(matrix.board, 'esp8266:esp8266') }}" == "true" ]]; then
|
||||||
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"
|
||||||
echo "::set-output name=skip-path::(HTTP|MQTT).*ino"
|
echo "::set-output name=skip-path::'(HTTP|MQTT).*ino'"
|
||||||
|
|
||||||
elif [[ "${{ contains(matrix.board, 'esp32:esp32') }}" == "true" ]]; then
|
elif [[ "${{ contains(matrix.board, 'esp32:esp32') }}" == "true" ]]; then
|
||||||
python -m pip install pyserial
|
python -m pip install pyserial
|
||||||
|
@ -86,7 +87,7 @@ 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.outputs.skip-path }}" ] && [[ ${example} =~ ${{ format('"{0}"', steps.prep.outputs.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.outputs.skip-path }})\033[0m";
|
echo -e "\n\033[1;33mSkipped ${example##*/} (matched with ${{ steps.prep.outputs.skip-path }})\033[0m";
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue