-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (60 loc) · 2.05 KB
/
ci.yml
File metadata and controls
71 lines (60 loc) · 2.05 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
name: CI — MiMiNavigator
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-quality:
name: Build & Quality (macOS 26 / Xcode 26.2)
runs-on: macos-26
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select Xcode 26.2
run: sudo xcode-select -s /Applications/Xcode_26.2.app/Contents/Developer
- name: Show versions
run: |
xcodebuild -version
swift --version
- name: Install xcbeautify
run: brew install xcbeautify
- name: Build (Debug)
run: |
xcodebuild clean build \
-project MiMiNavigator.xcodeproj \
-scheme MiMiNavigator \
-configuration Debug \
-destination 'platform=macOS' \
CODE_SIGNING_ALLOWED=NO \
SWIFT_TREAT_WARNINGS_AS_ERRORS=NO \
| xcbeautify --renderer github-actions
- name: Run tests
# xcodebuild test на Xcode 26 известны зависания — ставим жёсткий таймаут
timeout-minutes: 15
continue-on-error: true
run: |
xcodebuild test \
-project MiMiNavigator.xcodeproj \
-scheme MiMiNavigator \
-configuration Debug \
-destination 'platform=macOS' \
CODE_SIGNING_ALLOWED=NO \
| xcbeautify --renderer github-actions
- name: SwiftLint
continue-on-error: true
run: |
if ! command -v swiftlint &>/dev/null; then
brew install swiftlint
fi
swiftlint lint --strict
- name: Swift-format lint
continue-on-error: true
run: xcrun swift-format lint --recursive GUI/Sources
- name: Summary
if: always()
run: |
echo "### ✅ CI finished" >> $GITHUB_STEP_SUMMARY
echo "- Runner: macOS 26 (Tahoe)" >> $GITHUB_STEP_SUMMARY
echo "- Xcode: 26.2" >> $GITHUB_STEP_SUMMARY
echo "- Date: $(date -u '+%Y-%m-%d %H:%M UTC')" >> $GITHUB_STEP_SUMMARY