Skip to content

Commit

Permalink
Update xcodebuild-nonappstore.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmhouston authored Mar 24, 2024
1 parent e043330 commit fdb5b5f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/xcodebuild-nonappstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Set Default Scheme
uses: Cleepp
run: |
default=Cleepp
echo $default | cat >default
echo Using scheme: $default
- name: Build
env:
scheme: Cleepp
scheme: ${{ 'default' }}
run: |
if [ $scheme = default ]; then scheme=$(cat default); fi
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
xcodebuild clean build analyze -scheme "$scheme" -"$filetype_parameter" "$file_to_build" | xcpretty && exit ${PIPESTATUS[0]}

0 comments on commit fdb5b5f

Please sign in to comment.