Skip to content

Commit

Permalink
more CI work
Browse files Browse the repository at this point in the history
  • Loading branch information
3a4oT committed Nov 19, 2020
1 parent d6367c5 commit 268b21d
Showing 1 changed file with 8 additions and 30 deletions.
38 changes: 8 additions & 30 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@ jobs:
set -o pipefail
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
- name: Build iOS Example integrated via Xcode's SPM.
env:
IOS_EXAMPLE_PROJECT: Examples/Examples-iOS-SPM-Xcode/Examples-iOS-SPM-Xcode.xcodeproj
IOS_SPM_EXAMPLE_SCHEME: Examples-iOS-SPM-Xcode
run: |
set -o pipefail
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
SPM:
name: Build from SPM manifest
runs-on: macOS-latest
Expand All @@ -189,33 +197,3 @@ jobs:
rm -rf IGListKit.xcodeproj/
rm -rf IGListKit.xcworkspace/
xcodebuild clean build -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}"
Build-iOS-SPM-Xcode-Example:
name: Build iOS Example integrated via Xcode's SPM.
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode_12.1.1.app/Contents/Developer
IOS_EXAMPLE_PROJECT: Examples/Examples-iOS-SPM-Xcode/Examples-iOS-SPM-Xcode.xcodeproj
EXAMPLE_SCHEME: Examples-iOS-SPM-Xcode
strategy:
matrix:
iosDestination: ["name=iPhone 12 Pro"]
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cache RubyGems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install ruby gems.
run: bundle install

- name: Build iOS Example - ${{ matrix.iosDestination }}
run: |
set -o pipefail
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 comments on commit 268b21d

Please sign in to comment.