Skip to content

Commit

Permalink
makefile: Skip cldoc as VoodooI2C official repository has not merged …
Browse files Browse the repository at this point in the history
…the change
  • Loading branch information
stevezhengshiqi committed Aug 31, 2024
1 parent 5c48121 commit 0df53d7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions makefile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -466,19 +466,19 @@ function bKextHelper() {
cp -R "../VoodooInput" "./Dependencies/" || copyErr
git submodule init -q && git submodule update -q || networkErr "VoodooI2C Satellites"

if [[ -z ${GITHUB_ACTIONS+x} ]]; then
# if [[ -z ${GITHUB_ACTIONS+x} ]]; then
# Delete Linting & Generate Documentation in Build Phase to avoid installing cpplint & cldoc
lineNum=$(grep -n "Linting" VoodooI2C/VoodooI2C.xcodeproj/project.pbxproj) && lineNum=${lineNum%%:*}
/usr/bin/sed -i '' "${lineNum}d" VoodooI2C/VoodooI2C.xcodeproj/project.pbxproj
lineNum=$(grep -n "Generate Documentation" VoodooI2C/VoodooI2C.xcodeproj/project.pbxproj) && lineNum=${lineNum%%:*}
/usr/bin/sed -i '' "${lineNum}d" VoodooI2C/VoodooI2C.xcodeproj/project.pbxproj
else
# Install cpplint & cldoc when using GitHub Action
pip3 install --break-system-packages -q cpplint || exit 1
pip3 install --break-system-packages -q git+https://github.com/newperson1746/cldoc-fix.git || exit 1
fi
# else
# # Install cpplint & cldoc when using GitHub Action
# pip3 install --break-system-packages -q cpplint || exit 1
# pip3 install --break-system-packages -q git+https://github.com/newperson1746/cldoc-fix.git || exit 1
# fi

xcodebuild -workspace "VoodooI2C.xcworkspace" -scheme "VoodooI2C" -derivedDataPath . clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO || buildErr "$2"
xcodebuild -workspace "VoodooI2C.xcworkspace" -scheme "VoodooI2C" -derivedDataPath . clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO > /dev/null 2>&1 || buildErr "$2"
cp -R ${PATH_VI2C}*.kext "../" || copyErr
else
cp -R "../VoodooInput" "./" || copyErr
Expand Down

0 comments on commit 0df53d7

Please sign in to comment.