Skip to content

Commit

Permalink
bash syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-el-sayed committed Feb 1, 2024
1 parent 7637f34 commit d302daa
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit d302daa

Please sign in to comment.