Skip to content

Commit

Permalink
makefile: Temporarily disable cpplint & cldoc install in VoodooI2C build
Browse files Browse the repository at this point in the history
  • Loading branch information
stevezhengshiqi committed Sep 8, 2021
1 parent bbb0602 commit 056733f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions makefile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -470,17 +470,17 @@ function bKextHelper() {
fi
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
# else
# Install cpplint & cldoc when using GitHub Action
pip3 install -q cpplint || exit 1
pip3 install -q git+https://github.com/VoodooI2C/cldoc.git || exit 1
fi
# pip3 install -q cpplint || exit 1
# pip3 install -q git+https://github.com/VoodooI2C/cldoc.git || exit 1
# fi

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
Expand Down

0 comments on commit 056733f

Please sign in to comment.