Skip to content

Commit 268b21d

Browse files
committed
more CI work
1 parent d6367c5 commit 268b21d

1 file changed

Lines changed: 8 additions & 30 deletions

File tree

.github/workflows/CI.yml

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ jobs:
167167
set -o pipefail
168168
xcodebuild build -workspace "${{ env.MACOS_EXAMPLE_WORKSPACE }}" -scheme "${{ env.EXAMPLE_SCHEME }}" -destination "${{ matrix.macOSDestination }}" ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | bundle exec xcpretty -c
169169
170+
- name: Build iOS Example integrated via Xcode's SPM.
171+
env:
172+
IOS_EXAMPLE_PROJECT: Examples/Examples-iOS-SPM-Xcode/Examples-iOS-SPM-Xcode.xcodeproj
173+
IOS_SPM_EXAMPLE_SCHEME: Examples-iOS-SPM-Xcode
174+
run: |
175+
set -o pipefail
176+
xcodebuild clean build -project "${{ env.IOS_EXAMPLE_PROJECT }}" -scheme "${{ env.IOS_SPM_EXAMPLE_SCHEME }}" -destination "${{ matrix.iosDestination }}" -configuration Release ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | bundle exec xcpretty -c
177+
170178
SPM:
171179
name: Build from SPM manifest
172180
runs-on: macOS-latest
@@ -189,33 +197,3 @@ jobs:
189197
rm -rf IGListKit.xcodeproj/
190198
rm -rf IGListKit.xcworkspace/
191199
xcodebuild clean build -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}"
192-
193-
Build-iOS-SPM-Xcode-Example:
194-
name: Build iOS Example integrated via Xcode's SPM.
195-
runs-on: macOS-latest
196-
env:
197-
DEVELOPER_DIR: /Applications/Xcode_12.1.1.app/Contents/Developer
198-
IOS_EXAMPLE_PROJECT: Examples/Examples-iOS-SPM-Xcode/Examples-iOS-SPM-Xcode.xcodeproj
199-
EXAMPLE_SCHEME: Examples-iOS-SPM-Xcode
200-
strategy:
201-
matrix:
202-
iosDestination: ["name=iPhone 12 Pro"]
203-
steps:
204-
- name: Checkout
205-
uses: actions/checkout@v2
206-
207-
- name: Cache RubyGems
208-
uses: actions/cache@v2
209-
with:
210-
path: vendor/bundle
211-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
212-
restore-keys: |
213-
${{ runner.os }}-gems-
214-
215-
- name: Install ruby gems.
216-
run: bundle install
217-
218-
- name: Build iOS Example - ${{ matrix.iosDestination }}
219-
run: |
220-
set -o pipefail
221-
xcodebuild clean build -project "${{ env.IOS_EXAMPLE_PROJECT }}" -scheme "${{ env.EXAMPLE_SCHEME }}" -destination "${{ matrix.iosDestination }}" -configuration Release ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | bundle exec xcpretty -c

0 commit comments

Comments
 (0)