Skip to content

Commit

Permalink
Call carthage checkout in script
Browse files Browse the repository at this point in the history
  • Loading branch information
manicmaniac committed Aug 25, 2023
1 parent 556207d commit d3ba066
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions GitHubActions/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ MODE="$1"

if [ "$MODE" = "tests" -o "$MODE" = "all" ]; then
echo "Running MessageKit tests."
carthage checkout && ./GitHubActions/install-dependencies.sh
./GitHubActions/install-dependencies.sh
set -o pipefail && xcodebuild test -project MessageKit.xcodeproj -scheme MessageKitTests -destination "platform=iOS Simulator,name=iPhone 11 Pro" CODE_SIGNING_REQUIRED=NO | xcpretty -c
success="1"
fi

if [ "$MODE" = "framework" -o "$MODE" = "all" ]; then
echo "Building MessageKit Framework."
carthage checkout && ./GitHubActions/install-dependencies.sh
./GitHubActions/install-dependencies.sh
set -o pipefail && xcodebuild build -project MessageKit.xcodeproj -scheme MessageKit -destination "platform=iOS Simulator,name=iPhone 11 Pro" CODE_SIGNING_REQUIRED=NO | xcpretty -c
success="1"
fi
Expand Down
2 changes: 1 addition & 1 deletion GitHubActions/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

set -e

# carthage checkout
carthage checkout

derived_data_dir="$(mktemp -d -t DerivedData)"
trap "rm -rf '$derived_data_dir'" EXIT
Expand Down

0 comments on commit d3ba066

Please sign in to comment.