[CI] Fixed expression evaluation
This commit is contained in:
parent
c29b4f90f3
commit
062cc75dc7
1 changed files with 4 additions and 4 deletions
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
|
@ -24,25 +24,25 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install arduino-cli
|
- name: Install arduino-cli
|
||||||
if: ${{ env.run-build }}
|
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"
|
||||||
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/.local/bin sh
|
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/.local/bin sh
|
||||||
|
|
||||||
- name: Install platform
|
- name: Install platform
|
||||||
if: ${{ env.run-build }}
|
if: ${{ env.run-build == 'true' }}
|
||||||
run: |
|
run: |
|
||||||
arduino-cli core update-index
|
arduino-cli core update-index
|
||||||
arduino-cli core install ${{ matrix.platform }}
|
arduino-cli core install ${{ matrix.platform }}
|
||||||
echo "::set-env name=WARNINGS::all"
|
echo "::set-env name=WARNINGS::all"
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
if: ${{ env.run-build }}
|
if: ${{ env.run-build == 'true' }}
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build all examples
|
- name: Build all examples
|
||||||
if: ${{ env.run-build }}
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue