diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 02fad7c0c..02c15aa2a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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 @@ -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