CI: correct bash string eq test

This commit is contained in:
Pierre Kancir 2021-06-28 14:08:22 +02:00 committed by Andrew Tridgell
parent 5e5452cf73
commit 835a8c7fed
10 changed files with 10 additions and 10 deletions

View File

@ -65,7 +65,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
if [[ ${{ matrix.toolchain }} = "chibios-clang" ]]; then
if [[ ${{ matrix.toolchain }} == "chibios-clang" ]]; then
export CC=clang-7
export CXX=clang++-7
fi

View File

@ -73,7 +73,7 @@ jobs:
python -m pip uninstall -y pymavlink
git submodule update --init --recursive
(cd modules/mavlink/pymavlink && DISABLE_MAVNATIVE=True MDEF="$PWD/../message_definitions" python -m pip install --user .)
if [[ ${{ matrix.config }} = "coverage" ]]; then
if [[ ${{ matrix.config }} == "coverage" ]]; then
Tools/scripts/run_coverage.py -f
else
Tools/scripts/run_coverage.py -i

View File

@ -59,7 +59,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
if [[ ${{ matrix.toolchain }} = ",clang" ]]; then
if [[ ${{ matrix.toolchain }} == ",clang" ]]; then
export CC=clang-7
export CXX=clang++-7
fi

View File

@ -53,7 +53,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
if [[ ${{ matrix.toolchain }} = "clang" ]]; then
if [[ ${{ matrix.toolchain }} == "clang" ]]; then
export CC=clang-7
export CXX=clang++-7
fi

View File

@ -48,7 +48,7 @@ jobs:
- name: build copter ${{ matrix.toolchain }}
shell: bash
run: |
if [[ ${{ matrix.toolchain }} = "clang" ]]; then
if [[ ${{ matrix.toolchain }} == "clang" ]]; then
export CC=clang-7
export CXX=clang++-7
fi

View File

@ -48,7 +48,7 @@ jobs:
- name: build plane ${{ matrix.toolchain }}
shell: bash
run: |
if [[ ${{ matrix.toolchain }} = "clang" ]]; then
if [[ ${{ matrix.toolchain }} == "clang" ]]; then
export CC=clang-7
export CXX=clang++-7
fi

View File

@ -48,7 +48,7 @@ jobs:
- name: build rover ${{ matrix.toolchain }}
shell: bash
run: |
if [[ ${{ matrix.toolchain }} = "clang" ]]; then
if [[ ${{ matrix.toolchain }} == "clang" ]]; then
export CC=clang-7
export CXX=clang++-7
fi

View File

@ -48,7 +48,7 @@ jobs:
- name: build sub ${{ matrix.toolchain }}
shell: bash
run: |
if [[ ${{ matrix.toolchain }} = "clang" ]]; then
if [[ ${{ matrix.toolchain }} == "clang" ]]; then
export CC=clang-7
export CXX=clang++-7
fi

View File

@ -48,7 +48,7 @@ jobs:
- name: build tracker ${{ matrix.toolchain }}
shell: bash
run: |
if [[ ${{ matrix.toolchain }} = "clang" ]]; then
if [[ ${{ matrix.toolchain }} == "clang" ]]; then
export CC=clang-7
export CXX=clang++-7
fi

View File

@ -57,7 +57,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: 'script -q -e -c "bash {0}"'
run: |
if [[ ${{ matrix.toolchain }} = "clang" ]]; then
if [[ ${{ matrix.toolchain }} == "clang" ]]; then
export CC=clang-7
export CXX=clang++-7
fi