From d302daab17981da309f5f3edabd4eb46cc44fae9 Mon Sep 17 00:00:00 2001 From: Ahmad El Sayed Date: Thu, 1 Feb 2024 17:18:14 +0100 Subject: [PATCH] bash syntax --- .github/workflows/build-macos.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index a42543f52..f9e4397c5 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -40,19 +40,8 @@ jobs: steps: - id: condition - # run: | - # if [ "${{ runner.os }}" == "macOS" ]; then - # if [[ ${{ matrix.platform }} == 'macos-13-xlarge' && ${{ github.head_ref }} != 'feature/*' ]]; then - # echo "condition=true" >> $GITHUB_OUTPUT - # else - # echo "condition=false" >> $GITHUB_OUTPUT - # fi - # else - # echo "condition=true" >> $GITHUB_OUTPUT - # fi - run: | - if [[ ${{ matrix.platform }} == 'macos-13-xlarge' && ${{ github.head_ref }} == 'feature/*' ]]; then + if [ "${{ matrix.platform }}" == "macos-13-xlarge" ] && [ "${{ github.head_ref }}" == "feature/*" ]; then echo "condition=false" >> $GITHUB_OUTPUT else echo "condition=true" >> $GITHUB_OUTPUT @@ -62,10 +51,10 @@ jobs: needs: [setup] - if: ${{ needs.setup.outputs.condition }} == 'true' - runs-on: ${{needs.setup.outputs.platform}} + if: ${{ needs.setup.outputs.condition }} == 'true' + name: ${{needs.setup.outputs.platform}}-${{needs.setup.outputs.build_type}} # The default compiler on macos is clang, switch to gcc 11. Specifying the version is necessary.