Skip to content

Commit

Permalink
Improve the condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-el-sayed committed Feb 1, 2024
1 parent 55d2a6f commit 2980ac0
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
- macos-latest
- macos-13-xlarge
build_type:
- 'Release'
- 'Debug'
#- 'DebugWithRelInfo'
- Release
- Debug
#- DebugWithRelInfo

runs-on: ${{ matrix.platform }}

Expand All @@ -41,12 +41,23 @@ jobs:
steps:
- id: condition
run: |
if [[ ${{ matrix.platform }} == 'macos-13-xlarge' && ${{ github.ref }} != 'refs/heads/feature/*' ]]; then
echo "condition=true" >> $GITHUB_OUTPUT
if [ "${{ runner.os }}" == "macOS" ]; then
if [[ ${{ matrix.platform }} == 'macos-13-xlarge' && ${{ github.ref }} != 'refs/heads/feature/*' ]]; then
echo "condition=true" >> $GITHUB_OUTPUT
else
echo "condition=false" >> $GITHUB_OUTPUT
fi
else
echo "condition=false" >> $GITHUB_OUTPUT
echo "condition=true" >> $GITHUB_OUTPUT
fi
# run: |
# if [[ ${{ matrix.platform }} == 'macos-13-xlarge' && ${{ github.ref }} != 'refs/heads/feature/*' ]]; then
# echo "condition=true" >> $GITHUB_OUTPUT
# else
# echo "condition=false" >> $GITHUB_OUTPUT
# fi

build:

needs: [setup]
Expand Down

0 comments on commit 2980ac0

Please sign in to comment.