2019-10-09 00:18:13 +02:00
|
|
|
name: CI
|
|
|
|
|
2019-10-22 22:42:48 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- mac-release
|
2019-10-09 00:18:13 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: macOS-latest
|
2019-10-11 03:02:50 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2019-10-12 14:56:39 +02:00
|
|
|
run-config:
|
|
|
|
- { scheme: 'NetNewsWire', destination: 'platform=macOS'}
|
|
|
|
- { scheme: 'NetNewsWire-iOS', destination: 'platform=iOS Simulator,OS=13.0,name=iPhone 11' }
|
2019-10-09 00:18:13 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout Project
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- name: Switch to Xcode 11
|
|
|
|
run: sudo xcode-select -s /Applications/Xcode_11.app
|
2019-10-10 06:40:38 +02:00
|
|
|
|
2019-10-12 23:58:45 +02:00
|
|
|
- name: Show Build Version
|
2019-10-11 19:10:15 +02:00
|
|
|
run: xcodebuild -version
|
|
|
|
|
2019-10-12 23:58:45 +02:00
|
|
|
- name: Show Build Settings
|
2019-10-10 06:40:38 +02:00
|
|
|
run: xcodebuild -showBuildSettings
|
2019-10-11 19:10:15 +02:00
|
|
|
|
2019-10-12 23:58:45 +02:00
|
|
|
- name: Show Build SDK
|
2019-10-11 19:10:15 +02:00
|
|
|
run: xcodebuild -showsdks
|
|
|
|
|
|
|
|
- name: Show Available Destinations
|
2019-10-12 15:05:37 +02:00
|
|
|
env:
|
|
|
|
scheme: ${{ matrix.run-config['scheme'] }}
|
|
|
|
run: xcodebuild -scheme ${scheme} -showdestinations
|
2019-10-09 00:18:13 +02:00
|
|
|
|
|
|
|
- name: Run Build
|
|
|
|
env:
|
|
|
|
ENCRYPTION_SECRET: ${{ secrets.ENCRYPTION_SECRET }}
|
|
|
|
KEY_SECRET: ${{ secrets.KEY_SECRET }}
|
2019-10-12 14:56:39 +02:00
|
|
|
SCHEME: ${{ matrix.run-config['scheme'] }}
|
|
|
|
DESTINATION: ${{ matrix.run-config['destination'] }}
|
|
|
|
|
2019-10-12 03:07:23 +02:00
|
|
|
run: buildscripts/ci-build.sh
|