-
-
Notifications
You must be signed in to change notification settings - Fork 14
55 lines (51 loc) · 1.43 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
name: CI
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
- 'CODE_OF_CONDUCT.md'
- '.editorconfig'
- '.spi.yml'
- '.github/workflows/docc.yml'
- '.github/FUNDING.yml'
pull_request:
branches:
- main
env:
DEVELOPER_DIR: /Applications/Xcode_15.3.app/Contents/Developer
jobs:
lint:
name: Lint
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install XCLint
run: brew tap mattmassicotte/XCLint https://github.com/mattmassicotte/XCLint.git && brew install xclint
- name: Run XCLint
run: xclint
build:
name: macOS Build
runs-on: macOS-14
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Import Certs
uses: apple-actions/import-codesign-certs@v2
with:
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
- name: Setup Signing
env:
DEVELOPMENT_TEAM: ${{ secrets.DEVELOPMENT_TEAM }}
run: |
echo "DEVELOPMENT_TEAM = $DEVELOPMENT_TEAM" >> User.xcconfig
echo "BUNDLE_ID_PREFIX = com.chimehq" >> User.xcconfig
- name: xcodebuild
run: set -o pipefail && xcodebuild -scheme Edit -destination "platform=macOS" test | xcbeautify