-
-
Notifications
You must be signed in to change notification settings - Fork 18
51 lines (48 loc) · 1.9 KB
/
main.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
50
51
name: CI
# Controls when the workflow will run
on:
# Trigger the workflow on push or pull request events
push:
pull_request:
# Allow to run this workflow manually from the Actions tab
workflow_dispatch:
# Run the workflow for published releases
release:
types: [published]
jobs:
# Build the kext
build:
name: Build
runs-on: macos-latest
steps:
# Checkout the card reader repo
- uses: actions/[email protected]
# Checkout the MacKernelSDK repo
- uses: actions/[email protected]
with:
repository: acidanthera/MacKernelSDK
path: MacKernelSDK
# Build the driver
- run: xcodebuild -jobs 3 -configuration Debug
- run: xcodebuild -jobs 3 -configuration Release
# Upload the driver
- name: Upload to Artifacts
uses: actions/[email protected]
with:
name: RealtekCardReader
path: build/*/*.zip
# Analyze the kext
analyze:
name: Analyze
runs-on: macos-latest
steps:
# Checkout the card reader repo
- uses: actions/[email protected]
# Checkout the MacKernelSDK repo
- uses: actions/[email protected]
with:
repository: acidanthera/MacKernelSDK
path: MacKernelSDK
# Analyze the driver
- run: xcodebuild analyze -quiet -scheme RealtekCardReader -configuration Debug CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ]
- run: xcodebuild analyze -quiet -scheme RealtekCardReader -configuration Release CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ]