-
Notifications
You must be signed in to change notification settings - Fork 666
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1837 from Idclip/ci_fixes
Fixed Various CI
- Loading branch information
Showing
7 changed files
with
59 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,44 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
set -x | ||
set -e | ||
|
||
# Required dependencies | ||
VCPKG_INSTALL_CMD="vcpkg install | ||
zlib | ||
libpng | ||
openexr | ||
tbb | ||
gtest | ||
cppunit | ||
blosc | ||
glfw3 | ||
glew | ||
python3 | ||
jemalloc | ||
boost-iostreams | ||
boost-interprocess | ||
boost-algorithm | ||
pybind11 | ||
--clean-after-build" | ||
|
||
# Update vcpkg | ||
vcpkg update | ||
vcpkg install zlib libpng openexr tbb gtest cppunit blosc glfw3 glew python3 jemalloc \ | ||
boost-iostreams boost-interprocess boost-algorithm pybind11 \ | ||
--clean-after-build | ||
|
||
# Allow the vcpkg command to fail once so we can retry with the latest | ||
set +e | ||
$VCPKG_INSTALL_CMD | ||
STATUS=$? | ||
|
||
# Subsequent commands cannot fail | ||
set -x | ||
|
||
if [ $STATUS -ne 0 ]; then | ||
# Try once more with latest ports | ||
echo "vcpkg install failed, retrying with latest ports..." | ||
cd $VCPKG_INSTALLATION_ROOT && git pull && cd- | ||
vcpkg update | ||
$VCPKG_INSTALL_CMD | ||
fi | ||
|
||
echo "vcpkg install completed successfully" |