-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (40 loc) · 1.32 KB
/
xcode-analysis.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
name: "Xcode Analysis"
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: "0 12 * * 6"
jobs:
xcode:
name: "Xcode Analysis"
runs-on: macos-latest
defaults:
run:
shell: bash
env:
QT_VERSION: 5.12.11
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- name: "Install additional packages"
run: |
bash tools/install-qt.sh --version "$QT_VERSION" --target ios --toolchain ios --directory "$HOME/Qt" qtbase qtdeclarative qtquickcontrols2 qtlocation qtpurchasing
- name: "Perform Xcode analysis"
env:
QMAKE_CFLAGS_ENV: "-Werror"
QMAKE_CXXFLAGS_ENV: ""
QMAKE_OBJECTIVE_CFLAGS_ENV: "-Werror"
run: |
export PATH="$HOME/Qt/$QT_VERSION/ios/bin:$PATH"
mkdir .build
cd .build
qmake ../vkgeo.pro
xcodebuild CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CLANG_ANALYZER_OUTPUT=text -UseModernBuildSystem=NO -scheme vkgeo -configuration Debug -sdk iphoneos analyze | tee .analyze-output.txt
[[ "$(grep ": error:" .analyze-output.txt)" == "" ]]
[[ "$(grep ": warning:" .analyze-output.txt)" == "" ]]
[[ "$(grep ": note:" .analyze-output.txt)" == "" ]]
[[ "$(grep "ANALYZE FAILED" .analyze-output.txt)" == "" ]]