-
-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (54 loc) · 1.76 KB
/
Copy pathbuild.yml
File metadata and controls
65 lines (54 loc) · 1.76 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
name: Build macOS App
on:
push:
branches:
- release
pull_request:
branches:
- release
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Show Xcode version
run: xcodebuild -version
- name: Optional path catalog check
run: |
if [[ -f MacOSCleaner/Resources/engine_paths.json && -f MacOSCleaner/Resources/ui_metadata.json ]]; then
python3 scripts/validate_engine_paths.py
swift scripts/generate_cleanup_paths.swift --check
else
echo "Optional catalog SoT not present — skipping pack check"
fi
- name: Install XcodeGen
run: brew install xcodegen
- name: Check XcodeGen drift
working-directory: MacOSCleaner
run: |
xcodegen
git -C .. diff --exit-code -- MacOSCleaner/MacOSCleaner.xcodeproj
- name: Isolated test suite (pass 1)
run: |
xcodebuild \
-project MacOSCleaner/MacOSCleaner.xcodeproj \
-scheme MacOSCleaner \
-destination 'platform=macOS' \
-derivedDataPath "$RUNNER_TEMP/MacOSCleaner-Test-1" \
test
- name: Isolated test suite (pass 2)
run: |
xcodebuild \
-project MacOSCleaner/MacOSCleaner.xcodeproj \
-scheme MacOSCleaner \
-destination 'platform=macOS' \
-derivedDataPath "$RUNNER_TEMP/MacOSCleaner-Test-2" \
test
- name: Release build
run: |
xcodebuild \
-project MacOSCleaner/MacOSCleaner.xcodeproj \
-scheme MacOSCleaner \
-configuration Release \
-derivedDataPath "$RUNNER_TEMP/MacOSCleaner-Release" \
build