-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (68 loc) · 2.68 KB
/
build.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Build Swift API
on: pull_request
jobs:
test:
name: Build and test
runs-on: macos-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- name: List Xcode versions
run: ls /Applications | grep Xcode
- name: Set Xcode version
run: sudo xcode-select -s /Applications/Xcode_14.2.app
- name: Test on iOS
run: set -o pipefail && xcodebuild -project QminderAPI.xcodeproj -scheme QminderAPI-iOS -destination 'platform=iOS Simulator,name=iPhone 11 Pro' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO clean build test | xcpretty --color
env:
QMINDER_LOCATION_ID: ${{ secrets.QMINDER_LOCATION_ID }}
QMINDER_API_KEY: ${{ secrets.QMINDER_API_KEY }}
QMINDER_LINE_ID: ${{ secrets.QMINDER_LINE_ID }}
QMINDER_USER_ID: ${{ secrets.QMINDER_USER_ID }}
QMINDER_TV_ID: ${{ secrets.QMINDER_TV_ID }}
- name: Codeconv
run: |
sed -i"any_symbol" "s/SLACK_KEY/${SLACK_KEY}/" codecov.yml
bash <(curl -s https://codecov.io/bash)
- name: SwiftPM Build
run: swift build
- name: Update ruby and cocoapods
run: |
sudo gem install cocoapods --no-doc
sudo gem cleanup
- name: Pod lib lint
run: pod lib lint --allow-warnings
- name: action-slack
uses: 8398a7/action-slack@v2.2.0
with:
status: ${{ job.status }}
author_name: GithubCI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
build:
name: Build on ${{ matrix.platform }}
runs-on: macos-latest
strategy:
matrix:
platform:
- iOS
- tvOS
- macOS
- watchOS
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- name: List Xcode versions
run: ls /Applications | grep Xcode
- name: Set Xcode version
run: sudo xcode-select -s /Applications/Xcode_14.2.app
- name: Build
run: set -o pipefail && xcodebuild -project QminderAPI.xcodeproj -scheme QminderAPI-${{ matrix.platform }} CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO clean build | xcpretty --color
compile-example-project:
name: Compile example project
runs-on: macos-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- name: Example project
run: |
cd Example
pod install
xcodebuild clean build -workspace QminderTVApp.xcworkspace -scheme QminderTVApp CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO"