-
Notifications
You must be signed in to change notification settings - Fork 17
60 lines (55 loc) · 1.45 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: CI
on: [push, pull_request]
jobs:
mac:
runs-on: macOS-latest
env:
CX_COMBINE_IMPLEMENTATION: CombineX
CX_CONTINUOUS_INTEGRATION: "YES"
steps:
- uses: actions/checkout@v1
- name: Swift Version
run: swift --version
- name: Build
run: swift build
# ios:
# runs-on: macOS-latest
# env:
# CX_COMBINE_IMPLEMENTATION: CombineX
# CX_CONTINUOUS_INTEGRATION: "YES"
# steps:
# - uses: actions/checkout@v1
# - name: Xcode Version
# run: xcodebuild -version
# - name: Build and Test
# run: |
# set -o pipefail
# xcodebuild build \
# -scheme MusicPlayer \
# -destination "platform=iOS Simulator,name=iPhone 12" | xcpretty
linux:
runs-on: ubuntu-latest
container:
image: swift:latest
steps:
- uses: actions/checkout@v1
- name: Swift Version
run: swift --version
- name: Install Dependences
run: |
sed -i 's/bionic/focal/g' /etc/apt/sources.list
apt-get update
apt-get install -y libplayerctl-dev
- name: Build
run: swift build --target MusicPlayer
combine:
runs-on: macOS-latest
env:
CX_COMBINE_IMPLEMENTATION: Combine
CX_CONTINUOUS_INTEGRATION: "YES"
steps:
- uses: actions/checkout@v1
- name: Swift Version
run: swift --version
- name: Build
run: swift build