From 74b5c1d29a2ff07afa7f66cf361bbc2658287269 Mon Sep 17 00:00:00 2001 From: Marat Al Date: Mon, 13 Nov 2023 00:06:41 +0100 Subject: [PATCH] Added Carthage installation CI step. --- .github/workflows/integration-test-iOS16_4.yaml | 10 ++++++++++ .github/workflows/integration-test-iOS17_0.yaml | 10 ++++++++++ .github/workflows/integration-test-macOS.yaml | 10 ++++++++++ .github/workflows/integration-test-tvOS16_4.yaml | 10 ++++++++++ 4 files changed, 40 insertions(+) diff --git a/.github/workflows/integration-test-iOS16_4.yaml b/.github/workflows/integration-test-iOS16_4.yaml index cb7466515..ffc113f40 100644 --- a/.github/workflows/integration-test-iOS16_4.yaml +++ b/.github/workflows/integration-test-iOS16_4.yaml @@ -121,3 +121,13 @@ jobs: export PACKAGE_BRANCH_NAME=$GITHUB_HEAD_REF export PACKAGE_REVISION=$GITHUB_SHA swift test --package-path Examples/SPM -v + + - name: Carthage - Installation Test + working-directory: ./Examples/AblyCarthage + run: | + echo 'Clearing carthage cache...' + rm -rf ~/Library/Caches/org.carthage.CarthageKit + echo 'Installing cathage dependencies...' + carthage update --use-xcframeworks --platform iOS --no-use-binaries + echo 'Building AblyCarthage example...' + xcodebuild build -scheme "AblyCarthage" -destination "platform=iOS Simulator,name=iPhone 14" -configuration "Debug" diff --git a/.github/workflows/integration-test-iOS17_0.yaml b/.github/workflows/integration-test-iOS17_0.yaml index 4d42acee5..9c081da19 100644 --- a/.github/workflows/integration-test-iOS17_0.yaml +++ b/.github/workflows/integration-test-iOS17_0.yaml @@ -121,3 +121,13 @@ jobs: export PACKAGE_BRANCH_NAME=$GITHUB_HEAD_REF export PACKAGE_REVISION=$GITHUB_SHA swift test --package-path Examples/SPM -v + + - name: Carthage - Installation Test + working-directory: ./Examples/AblyCarthage + run: | + echo 'Clearing carthage cache...' + rm -rf ~/Library/Caches/org.carthage.CarthageKit + echo 'Installing cathage dependencies...' + carthage update --use-xcframeworks --platform iOS --no-use-binaries + echo 'Building AblyCarthage example...' + xcodebuild build -scheme "AblyCarthage" -destination "platform=iOS Simulator,name=iPhone 15" -configuration "Debug" diff --git a/.github/workflows/integration-test-macOS.yaml b/.github/workflows/integration-test-macOS.yaml index 46107ed02..5eade1bec 100644 --- a/.github/workflows/integration-test-macOS.yaml +++ b/.github/workflows/integration-test-macOS.yaml @@ -116,3 +116,13 @@ jobs: export PACKAGE_BRANCH_NAME=$GITHUB_HEAD_REF export PACKAGE_REVISION=$GITHUB_SHA swift test --package-path Examples/SPM -v + + - name: Carthage - Installation Test + working-directory: ./Examples/AblyCarthage + run: | + echo 'Clearing carthage cache...' + rm -rf ~/Library/Caches/org.carthage.CarthageKit + echo 'Installing cathage dependencies...' + carthage update --use-xcframeworks --platform iOS --no-use-binaries + echo 'Building AblyCarthage example...' + xcodebuild build -scheme "AblyCarthage" -destination "platform=iOS Simulator,name=iPhone 14" -configuration "Debug" diff --git a/.github/workflows/integration-test-tvOS16_4.yaml b/.github/workflows/integration-test-tvOS16_4.yaml index de7662466..e74de8432 100644 --- a/.github/workflows/integration-test-tvOS16_4.yaml +++ b/.github/workflows/integration-test-tvOS16_4.yaml @@ -116,3 +116,13 @@ jobs: export PACKAGE_BRANCH_NAME=$GITHUB_HEAD_REF export PACKAGE_REVISION=$GITHUB_SHA swift test --package-path Examples/SPM -v + + - name: Carthage - Installation Test + working-directory: ./Examples/AblyCarthage + run: | + echo 'Clearing carthage cache...' + rm -rf ~/Library/Caches/org.carthage.CarthageKit + echo 'Installing cathage dependencies...' + carthage update --use-xcframeworks --platform iOS --no-use-binaries + echo 'Building AblyCarthage example...' + xcodebuild build -scheme "AblyCarthage" -destination "platform=iOS Simulator,name=iPhone 14" -configuration "Debug"