Skip to content

Commit

Permalink
feat: Reduce build time by including Lilu as a submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualEhrmanntraut committed Aug 29, 2024
1 parent 746f09e commit 84ccc6f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: CI Bootstrap
run: src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1
- name: Lilu Bootstrap
run: src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval "$src" || exit 1
- run: xcodebuild -configuration Debug -arch x86_64 build
- run: xcodebuild -configuration Release -arch x86_64 build
- name: Upload to Artifacts
Expand Down Expand Up @@ -54,9 +50,5 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: CI Bootstrap
run: src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1
- name: Lilu Bootstrap
run: src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval "$src" || exit 1
- 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 Release -arch x86_64 CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ]
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "MacKernelSDK"]
path = MacKernelSDK
url = https://github.com/Acidanthera/MacKernelSDK.git
[submodule "Lilu"]
path = Lilu
url = https://github.com/acidanthera/Lilu
1 change: 1 addition & 0 deletions Lilu
Submodule Lilu added at cedfe8
8 changes: 4 additions & 4 deletions NootedRed.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
CE405EDA1E4A080F00AA0B3D /* plugin_start.hpp */,
);
name = Headers;
path = Lilu.kext/Contents/Resources/Headers;
path = Lilu/Lilu/Headers;
sourceTree = SOURCE_ROOT;
};
CE405EC51E49DD7100AA0B3D /* Library */ = {
Expand All @@ -285,7 +285,7 @@
CE405ED81E4A080700AA0B3D /* plugin_start.cpp */,
);
name = Library;
path = Lilu.kext/Contents/Resources/Library;
path = Lilu/Lilu/Library;
sourceTree = SOURCE_ROOT;
};
CE405EC81E49DD7B00AA0B3D /* SDK */ = {
Expand Down Expand Up @@ -485,7 +485,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = (
"$(PROJECT_DIR)/Lilu.kext/Contents/Resources",
"$(PROJECT_DIR)/Lilu/Lilu",
"$(PROJECT_DIR)/MacKernelSDK/Headers",
);
KERNEL_EXTENSION_HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/MacKernelSDK/Headers";
Expand Down Expand Up @@ -544,7 +544,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = (
"$(PROJECT_DIR)/Lilu.kext/Contents/Resources",
"$(PROJECT_DIR)/Lilu/Lilu",
"$(PROJECT_DIR)/MacKernelSDK/Headers",
);
KERNEL_EXTENSION_HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/MacKernelSDK/Headers";
Expand Down

0 comments on commit 84ccc6f

Please sign in to comment.