-
Notifications
You must be signed in to change notification settings - Fork 9
82 lines (72 loc) · 2.23 KB
/
Copy pathci.yml
File metadata and controls
82 lines (72 loc) · 2.23 KB
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: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
name: Build & Test
runs-on: macos-26
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate GoogleService-Info.plist
run: |
cat > macgit/GoogleService-Info.plist <<'PLIST'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>API_KEY</key>
<string>${{ vars.FIREBASE_API_KEY }}</string>
<key>BUNDLE_ID</key>
<string>dev.thanhtran.macgit</string>
<key>CLIENT_ID</key>
<string>${{ vars.FIREBASE_CLIENT_ID }}</string>
<key>GOOGLE_APP_ID</key>
<string>${{ vars.FIREBASE_GOOGLE_APP_ID }}</string>
<key>GCM_SENDER_ID</key>
<string>${{ vars.FIREBASE_GCM_SENDER_ID }}</string>
<key>PROJECT_ID</key>
<string>${{ vars.FIREBASE_PROJECT_ID }}</string>
<key>REVERSED_CLIENT_ID</key>
<string>${{ vars.FIREBASE_REVERSED_CLIENT_ID }}</string>
<key>STORAGE_BUCKET</key>
<string>${{ vars.FIREBASE_STORAGE_BUCKET }}</string>
<key>PLIST_VERSION</key>
<string>1</string>
</dict>
</plist>
PLIST
- name: Resolve dependencies
run: |
xcodebuild \
-resolvePackageDependencies \
-project macgit.xcodeproj \
-scheme macgit
- name: Build
run: |
xcodebuild \
-project macgit.xcodeproj \
-scheme macgit \
-destination 'platform=macOS' \
CODE_SIGNING_ALLOWED=NO \
build
- name: Test
run: |
xcodebuild \
-project macgit.xcodeproj \
-scheme macgit \
-destination 'platform=macOS' \
CODE_SIGNING_ALLOWED=NO \
-parallel-testing-enabled NO \
test