-
Notifications
You must be signed in to change notification settings - Fork 15
151 lines (127 loc) · 9.81 KB
/
build.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
name: CI
on:
push:
release:
types: [published]
jobs:
build-nvidia-unsupported:
name: Build for unsupported OS (NVIDIA)
runs-on: macos-latest
steps:
- name: Build
uses: actions/checkout@v3
- run: plutil -remove "DeviceProperties"."Add"."PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)" EFI/OC/config.plist
- run: plutil -insert "DeviceProperties"."Add"."PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)" -xml "<dict><key>@0,AAPL,boot-display</key><data>AQ==</data><key>@0,NVMT</key><data>DgN/IAAAAABACwgH4AtwC5ALAAA8BwsHEQcAAPCnIRQAAAABrwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAAAAAAAAAAAAABAAAAAAAA/wAAAAC8AgFaCgQAAAACAABACwgHQAsIBw==</data><key>@0,backlight-control</key><data>AQAAAA==</data><key>@0,built-in</key><data>AQAAAA==</data><key>@0,compatible</key><string>NVDA,NVMac</string><key>@0,connector-type</key><data>AAgAAA==</data><key>@0,device_type</key><string>display</string><key>@0,display-cfg</key><data>//82AA==</data><key>@0,display-type</key><string>LCD</string><key>@0,name</key><string>NVDA,Display-A</string><key>@0,pwm-info</key><data>AhgAZJBZAgAIUgAApRwAAAAEAAABAAAA</data><key>@0,use-backlight-blanking</key><data></data><key>@1,can-hot-plug</key><data></data><key>@1,compatible</key><string>NVDA,NVMac</string><key>@1,connector-type</key><data>AAgAAA==</data><key>@1,device_type</key><string>display</string><key>@1,display-cfg</key><data>/////w==</data><key>@1,name</key><string>NVDA,Display-B</string><key>AAPL,aux-power-connected</key><data>AQAAAA==</data><key>AAPL,backlight-control</key><data>AQAAAA==</data><key>AAPL,gray-page</key><data>AQAAAA==</data><key>AAPL00,blackscreen.preferences</key><data>AAAACA==</data><key>AAPL00,inverter</key><data>AAAAAA==</data><key>AAPL01,blackscreen.preferences</key><data>AAAACA==</data><key>NVPM</key><data>AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==</data><key>agdpmod</key><string>vit9696</string><key>hda-gfx</key><string>onboard-1</string><key>shikigva</key><integer>256</integer><key>applbkl</key><integer>1</integer></dict>" EFI/OC/config.plist
- run: mkdir Output && zip --exclude '*.git*' --exclude '*.github*' --exclude '*Output*' -r -X "Output/${{ github.event.repository.name }}-${{github.ref_name}}-NVIDIA-Sonoma.zip" .
- name: Upload to Artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: Output/*.zip
- name: Upload to Release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@e74ff71f7d8a4c4745b560a485cc5fdb9b5b999d
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Output/*.zip
tag: ${{ github.ref }}
file_glob: true
build-amd-unsupported:
name: Build for unsupported OS (AMD)
runs-on: macos-latest
steps:
- name: Build
uses: actions/checkout@v3
- run: mkdir Output && zip --exclude '*.git*' --exclude '*.github*' --exclude '*Output*' -r -X "Output/${{ github.event.repository.name }}-${{github.ref_name}}-AMD-Sonoma.zip" .
- name: Upload to Artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: Output/*.zip
- name: Upload to Release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@e74ff71f7d8a4c4745b560a485cc5fdb9b5b999d
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Output/*.zip
tag: ${{ github.ref }}
file_glob: true
build-nvidia-supported:
name: Build for supported OS (NVIDIA)
runs-on: macos-latest
steps:
- name: Build
uses: actions/checkout@v3
# add NVIDIA properties
- run: plutil -remove "DeviceProperties"."Add"."PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)" EFI/OC/config.plist
- run: plutil -insert "DeviceProperties"."Add"."PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)" -xml "<dict><key>@0,AAPL,boot-display</key><data>AQ==</data><key>@0,NVMT</key><data>DgN/IAAAAABACwgH4AtwC5ALAAA8BwsHEQcAAPCnIRQAAAABrwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAAAAAAAAAAAAABAAAAAAAA/wAAAAC8AgFaCgQAAAACAABACwgHQAsIBw==</data><key>@0,backlight-control</key><data>AQAAAA==</data><key>@0,built-in</key><data>AQAAAA==</data><key>@0,compatible</key><string>NVDA,NVMac</string><key>@0,connector-type</key><data>AAgAAA==</data><key>@0,device_type</key><string>display</string><key>@0,display-cfg</key><data>//82AA==</data><key>@0,display-type</key><string>LCD</string><key>@0,name</key><string>NVDA,Display-A</string><key>@0,pwm-info</key><data>AhgAZJBZAgAIUgAApRwAAAAEAAABAAAA</data><key>@0,use-backlight-blanking</key><data></data><key>@1,can-hot-plug</key><data></data><key>@1,compatible</key><string>NVDA,NVMac</string><key>@1,connector-type</key><data>AAgAAA==</data><key>@1,device_type</key><string>display</string><key>@1,display-cfg</key><data>/////w==</data><key>@1,name</key><string>NVDA,Display-B</string><key>AAPL,aux-power-connected</key><data>AQAAAA==</data><key>AAPL,backlight-control</key><data>AQAAAA==</data><key>AAPL,gray-page</key><data>AQAAAA==</data><key>AAPL00,blackscreen.preferences</key><data>AAAACA==</data><key>AAPL00,inverter</key><data>AAAAAA==</data><key>AAPL01,blackscreen.preferences</key><data>AAAACA==</data><key>NVPM</key><data>AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==</data><key>agdpmod</key><string>vit9696</string><key>hda-gfx</key><string>onboard-1</string><key>shikigva</key><integer>256</integer><key>applbkl</key><integer>1</integer></dict>" EFI/OC/config.plist
# disable Sonoma specific patches
- run: plutil -replace "Booter"."Patch".0."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".19."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".20."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".21."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".31."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".32."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".33."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".34."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".35."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".36."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".0."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".1."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".2."Enabled" -bool false EFI/OC/config.plist
# remove Sonoma specific boot-args
- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."boot-args" -string "" EFI/OC/config.plist
# enable SIP
- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."csr-active-config" -data AAAAAA== EFI/OC/config.plist
- run: mkdir Output && zip --exclude '*.git*' --exclude '*.github*' --exclude '*Output*' -r -X "Output/${{ github.event.repository.name }}-${{github.ref_name}}-NVIDIA-Catalina.zip" .
- name: Upload to Artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: Output/*.zip
- name: Upload to Release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@e74ff71f7d8a4c4745b560a485cc5fdb9b5b999d
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Output/*.zip
tag: ${{ github.ref }}
file_glob: true
build-amd-supported:
name: Build for supported OS (AMD)
runs-on: macos-latest
steps:
- name: Build
uses: actions/checkout@v3
# disable Sonoma specific patches
- run: plutil -replace "Booter"."Patch".0."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".19."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".20."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".21."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".31."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".32."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".33."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".34."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".35."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".36."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".0."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".1."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".2."Enabled" -bool false EFI/OC/config.plist
# remove Sonoma specific boot-args
- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."boot-args" -string "" EFI/OC/config.plist
# enable SIP
- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."csr-active-config" -data AAAAAA== EFI/OC/config.plist
- run: mkdir Output && zip --exclude '*.git*' --exclude '*.github*' --exclude '*Output*' -r -X "Output/${{ github.event.repository.name }}-${{github.ref_name}}-AMD-Catalina.zip" .
- name: Upload to Artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: Output/*.zip
- name: Upload to Release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@e74ff71f7d8a4c4745b560a485cc5fdb9b5b999d
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Output/*.zip
tag: ${{ github.ref }}
file_glob: true