Skip to content

Commit

Permalink
Added Carthage workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
maratal committed Nov 13, 2023
1 parent d153dcf commit 9dba2a9
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/carthage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Carthage Installation

on:
pull_request:
push:
branches:
- main

jobs:
check:
runs-on: macos-latest

env:
LC_CTYPE: en_US.UTF-8
LANG: en_US.UTF-8
ABLY_ENV: sandbox

steps:
- name: Check out SDK repo
uses: actions/checkout@v2

- name: Select Specific Xcode Version (14.2)
run: |
sudo xcode-select -s /Applications/Xcode_14.2.app
echo "Selected Xcode version:"
xcodebuild -version
- name: Log environment information
run: ./Scripts/log-environment-information.sh

- name: Reset Simulators
run: xcrun simctl erase all

- name: Carthage - Installation Test
working-directory: ./Examples/AblyCarthage
run: |
echo 'Installing Carthage 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"

0 comments on commit 9dba2a9

Please sign in to comment.