Skip to content

Commit cedd3dd

Browse files
committed
Added support for GitHUb actions. Removed support for Travis.
1 parent 20e79a8 commit cedd3dd

File tree

2 files changed

+47
-22
lines changed

2 files changed

+47
-22
lines changed

.github/workflows/ci.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: macos-latest
6+
strategy:
7+
matrix:
8+
run-config:
9+
- { scheme: 'ColorSetKit', project: 'ColorSet++.xcodeproj', actions: "build analyze test", destination: 'platform=macOS' }
10+
steps:
11+
12+
- name: Checkout
13+
id: checkout
14+
uses: actions/checkout@v1
15+
with:
16+
submodules: 'recursive'
17+
18+
- name: Xcode - Version
19+
id: xcode-version
20+
run: xcode-select -p
21+
22+
- name: Xcode - SDKs
23+
id: xcode-sdk
24+
run: xcodebuild -project '${{ matrix.run-config['project'] }}' -scheme '${{ matrix.run-config['scheme'] }}' -showsdks
25+
26+
- name: Xcode - Destinations
27+
id: xcode-destinations
28+
run: xcodebuild -project '${{ matrix.run-config['project'] }}' -scheme '${{ matrix.run-config['scheme'] }}' -showdestinations
29+
30+
- name: Xcode - Build Settings
31+
id: xcode-build-settings
32+
run: xcodebuild -project '${{ matrix.run-config['project'] }}' -scheme '${{ matrix.run-config['scheme'] }}' -showBuildSettings
33+
34+
- name: Xcode - Build
35+
id: xcode-build
36+
run: xcodebuild -project '${{ matrix.run-config['project'] }}' -scheme '${{ matrix.run-config['scheme'] }}' -destination '${{ matrix.run-config['destination'] }}' -showBuildTimingSummary ${{ matrix.run-config['actions'] }} CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
37+
38+
- name: Slack
39+
id: slack
40+
uses: act10ns/slack@v1
41+
if: always()
42+
env:
43+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
44+
with:
45+
status: ${{ job.status }}
46+
steps: ${{ toJson(steps) }}
47+
channel: '#ci'

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)