-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.39 KB
/
Copy pathci.yml
File metadata and controls
49 lines (43 loc) · 1.39 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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build & Validate
runs-on: macos-15
steps:
- name: Checkout Code
uses: actions/checkout@v7
- name: Select Xcode 26
run: |
selected=""
for xcode in /Applications/Xcode_26.3.app /Applications/Xcode_26.2.app /Applications/Xcode_26.1.1.app /Applications/Xcode_26.1.app /Applications/Xcode_26.0.1.app /Applications/Xcode_26.0.app; do
if [ -d "$xcode" ]; then
selected="$xcode"
break
fi
done
if [ -z "$selected" ]; then
echo "Xcode 26.x is required for SpeechAnalyzer" >&2
ls -1 /Applications | grep '^Xcode' || true
exit 1
fi
echo "Selecting $selected"
sudo xcode-select -s "$selected/Contents/Developer"
xcodebuild -version
xcrun --sdk macosx --show-sdk-version
- name: Run state tests
run: ./Scripts/run-state-tests.sh
- name: Build LocalTranslate
run: |
xcodebuild -project LocalTranslate.xcodeproj \
-scheme LocalTranslate \
-configuration Release \
-destination 'generic/platform=macOS' \
build \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO