Skip to content

Commit

Permalink
fix: mkdir build
Browse files Browse the repository at this point in the history
  • Loading branch information
zpg6 committed Nov 29, 2024
1 parent 8dcc407 commit 3753357
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ jobs:
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" BUILD_DIR=./build | xcpretty && exit ${PIPESTATUS[0]}
mkdir -p build
BUILD_DIR=build
xcodebuild clean build analyze -scheme "$scheme" -"$filetype_parameter" "$file_to_build" | xcpretty && exit ${PIPESTATUS[0]}
ls -al
ls -al build
Expand Down

0 comments on commit 3753357

Please sign in to comment.