Add destination to build scripts

This commit is contained in:
Maurice Parker 2019-10-12 07:56:39 -05:00
parent e76a4f1d02
commit bb6901b9c7
2 changed files with 7 additions and 3 deletions

View File

@ -8,7 +8,9 @@ jobs:
runs-on: macOS-latest runs-on: macOS-latest
strategy: strategy:
matrix: matrix:
scheme: ['NetNewsWire', 'NetNewsWire-iOS'] run-config:
- { scheme: 'NetNewsWire', destination: 'platform=macOS'}
- { scheme: 'NetNewsWire-iOS', destination: 'platform=iOS Simulator,OS=13.0,name=iPhone 11' }
steps: steps:
- name: Checkout Project - name: Checkout Project
@ -35,5 +37,7 @@ jobs:
env: env:
ENCRYPTION_SECRET: ${{ secrets.ENCRYPTION_SECRET }} ENCRYPTION_SECRET: ${{ secrets.ENCRYPTION_SECRET }}
KEY_SECRET: ${{ secrets.KEY_SECRET }} KEY_SECRET: ${{ secrets.KEY_SECRET }}
SCHEME: ${{ matrix.scheme }} SCHEME: ${{ matrix.run-config['scheme'] }}
DESTINATION: ${{ matrix.run-config['destination'] }}
run: buildscripts/ci-build.sh run: buildscripts/ci-build.sh

View File

@ -31,7 +31,7 @@ rm -f buildscripts/certs/ios-dist.cer
rm -f buildscripts/certs/mac-dist.p12 rm -f buildscripts/certs/mac-dist.p12
# Do the build # Do the build
xcodebuild -scheme $SCHEME test -showBuildTimingSummary xcodebuild -scheme $SCHEME test -destination "$DESTINATION" -showBuildTimingSummary
# Delete the keychain and the provisioningi profile # Delete the keychain and the provisioningi profile
security delete-keychain github-build.keychain security delete-keychain github-build.keychain