forked from ChefKissInc/NootedRed
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.74 KB
/
Copy pathmain.yml
File metadata and controls
47 lines (44 loc) · 1.74 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
name: CI
on:
push:
pull_request:
workflow_dispatch:
release:
types: [published]
jobs:
build:
name: Build
runs-on: macos-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
with:
submodules: "recursive"
- run: xcodebuild -configuration Debug -arch x86_64 build
- run: xcodebuild -configuration Research\ Release -arch x86_64 build
- run: xcodebuild -configuration Release -arch x86_64 build
- name: Upload to Artifacts
uses: actions/upload-artifact@v6
with:
name: Artifacts
path: build/*/*.zip
- name: Upload build
uses: svenstaro/upload-release-action@2.11.3
if: github.event_name == 'release'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/*/*.zip
tag: ${{ github.ref }}
file_glob: true
overwrite: true
analyse-clang:
name: Analyse Clang
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
with:
submodules: "recursive"
- run: xcodebuild analyze -quiet -scheme NootedRed -configuration Debug -arch x86_64 CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ]
- run: xcodebuild analyze -quiet -scheme NootedRed -configuration Research\ Release -arch x86_64 CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ]
- run: xcodebuild analyze -quiet -scheme NootedRed -configuration Release -arch x86_64 CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ]