NetNewsWire/.github/workflows/build.yml.bak

65 lines
1.6 KiB
YAML
Raw Normal View History

2019-10-09 00:18:13 +02:00
name: CI
on:
push:
branches:
2020-07-17 18:15:27 +02:00
- main
- mac-candidate
- mac-release
- 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-07-29 12:21:19 +02:00
- { scheme: 'NetNewsWire-iOS', destination: 'platform=iOS Simulator,OS=14.0,name=iPhone 11' }
2019-10-09 00:18:13 +02:00
steps:
- name: Checkout Project
uses: actions/checkout@v1
with:
submodules: recursive
- name: List Available Applications
run: ls /Applications
2020-07-29 12:17:36 +02:00
- name: Switch to Xcode 12
run: sudo xcode-select -s /Applications/Xcode_12.app
2019-10-12 23:58:45 +02:00
- name: Show Build Version
run: xcodebuild -version
2019-10-12 23:58:45 +02:00
- name: Show Build Settings
run: xcodebuild -showBuildSettings
2019-10-12 23:58:45 +02:00
- name: Show Build SDK
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'] }}
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()