2019-10-09 00:18:13 +02:00
|
|
|
name: CI
|
|
|
|
|
2019-10-22 22:42:48 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-07-17 18:15:27 +02:00
|
|
|
- main
|
2019-10-22 23:18:48 +02:00
|
|
|
- mac-candidate
|
2019-10-22 22:42:48 +02:00
|
|
|
- mac-release
|
2019-10-22 23:18:48 +02:00
|
|
|
- ios-candidate
|
|
|
|
- ios-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'}
|
2020-03-25 01:32:16 +01:00
|
|
|
- { scheme: 'NetNewsWire-iOS', destination: 'platform=iOS Simulator,OS=13.4,name=iPhone 11' }
|
2019-10-09 00:18:13 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout Project
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
2020-03-25 00:40:36 +01:00
|
|
|
- name: List Available Applications
|
|
|
|
run: ls /Applications
|
|
|
|
|
2019-10-09 00:18:13 +02:00
|
|
|
- name: Switch to Xcode 11
|
2020-03-25 00:42:18 +01:00
|
|
|
run: sudo xcode-select -s /Applications/Xcode_11.4.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-11-13 15:44:22 +01:00
|
|
|
run: buildscripts/ci-build.sh
|
|
|
|
|
|
|
|
- name: Notify Slack
|
|
|
|
uses: 8398a7/action-slack@v2.4.2
|
|
|
|
with:
|
|
|
|
status: ${{ job.status }}
|
|
|
|
author_name: GitHub Actions CI
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
2019-11-13 16:07:14 +01:00
|
|
|
if: failure()
|