diff --git a/GitHubActions/build.sh b/GitHubActions/build.sh index 2356c3d2b..85d50baf7 100755 --- a/GitHubActions/build.sh +++ b/GitHubActions/build.sh @@ -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 diff --git a/GitHubActions/install-dependencies.sh b/GitHubActions/install-dependencies.sh index 239173fa1..8d7cf00cd 100755 --- a/GitHubActions/install-dependencies.sh +++ b/GitHubActions/install-dependencies.sh @@ -6,7 +6,7 @@ set -e -# carthage checkout +carthage checkout derived_data_dir="$(mktemp -d -t DerivedData)" trap "rm -rf '$derived_data_dir'" EXIT