-
-
Notifications
You must be signed in to change notification settings - Fork 89
49 lines (42 loc) · 1.71 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
name: CD
on:
push:
pull_request:
workflow_dispatch:
release:
types: [published]
env:
PROJECT_TYPE: KEXT
ACID32: 1
jobs:
build:
name: Build
runs-on: macos-latest
env:
JOB_TYPE: BUILD
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Fetch Dependencies
run: |
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval "$src" || exit 1
git clone https://github.com/acidanthera/VirtualSMC.git
- name: Build All Schemes
run: |
xcodebuild -scheme "AMDRyzenCPUPowerManagement" -jobs 1 -arch x86_64 -arch ACID32 -configuration Release -derivedDataPath ./build
xcodebuild -scheme "APGLaunchHelper" -jobs 1 -arch x86_64 -arch ACID32 -configuration Release -derivedDataPath ./build
xcodebuild -scheme "AMD Power Gadget" -jobs 1 -arch x86_64 -arch ACID32 -configuration Release -derivedDataPath ./build
xcodebuild -scheme "SMCAMDProcessor" -jobs 1 -arch x86_64 -arch ACID32 -configuration Release -derivedDataPath ./build
- name: Archive Artifacts
run: |
rm -rf build/Build/Products/Release/*.dSYM
rm -rf build/Build/Products/Release/*.swiftmodule
rm -rf build/Build/Products/Release/APGLaunchHelper*
zip -r build/Release.zip build/Build/Products/Release
- name: Upload to Artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/Release.zip