-
Notifications
You must be signed in to change notification settings - Fork 20
97 lines (79 loc) · 3.56 KB
/
ci.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
name: CI
on:
release:
types: [published]
jobs:
ventura:
name: Build (Ventura)
runs-on: macos-latest
steps:
- name: Build
uses: actions/checkout@v3
- name: TAG_VER (push)
if: github.event_name == 'push'
run: echo "TAG_VER=13.0" >> $GITHUB_ENV
- name: TAG_VER (release)
if: github.event_name == 'release'
run: echo "TAG_VER=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- run: mkdir Output && zip --exclude '*.git*' --exclude '*.github*' --exclude '*Output*' -r -X "Output/${{ github.event.repository.name }}-${TAG_VER} (Ventura).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@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Output/*.zip
tag: ${{ github.ref }}
file_glob: true
monterey:
name: Build (Monterey)
runs-on: macos-latest
steps:
- name: Build
uses: actions/checkout@v3
- name: TAG_VER (push)
if: github.event_name == 'push'
run: echo "TAG_VER=13.0" >> $GITHUB_ENV
- name: TAG_VER (release)
if: github.event_name == 'release'
run: echo "TAG_VER=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: "Download latest AirportItlwm for Monterey"
uses: robinraju/release-downloader@v1.6
with:
repository: "OpenIntelWireless/itlwm"
latest: true
fileName: "*_Monterey.kext.zip"
# replace Ventura AirportItlwm with Monterey
- run: rm -rf OpenCore/EFI/OC/Kexts/AirportItlwm.kext
- run: unzip *_Monterey.kext.zip
- run: mv Monterey/AirportItlwm.kext OpenCore/EFI/OC/Kexts/
# disable Ventura specific patches
- run: plutil -replace "Booter"."Patch".1."Enabled" -bool false OpenCore/EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".17."Enabled" -bool false OpenCore/EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".18."Enabled" -bool false OpenCore/EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".0."Enabled" -bool false OpenCore/EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".1."Enabled" -bool false OpenCore/EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".2."Enabled" -bool false OpenCore/EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".3."Enabled" -bool false OpenCore/EFI/OC/config.plist
# remove Ventura specific boot-args
- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."boot-args" -string "" OpenCore/EFI/OC/config.plist
# enable SIP
- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."csr-active-config" -data AAAAAA== OpenCore/EFI/OC/config.plist
- run: mkdir Output && zip --exclude '*.git*' --exclude '*.github*' --exclude '*Output*' --exclude '*Monterey*' -r -X "Output/${{ github.event.repository.name }}-${TAG_VER} (Monterey).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@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Output/*.zip
tag: ${{ github.ref }}
file_glob: true