mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-21 19:20:07 +00:00
[spirv] Package and upload builds. (#2544)
This commit is contained in:
parent
6d04da22c6
commit
5fc5303eec
@ -14,3 +14,9 @@
|
|||||||
|
|
||||||
# Continuous build configuration.
|
# Continuous build configuration.
|
||||||
build_file: "SPIRV-Tools/kokoro/linux-clang-debug/build.sh"
|
build_file: "SPIRV-Tools/kokoro/linux-clang-debug/build.sh"
|
||||||
|
|
||||||
|
action {
|
||||||
|
define_artifacts {
|
||||||
|
regex: "install.tgz"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -14,3 +14,9 @@
|
|||||||
|
|
||||||
# Continuous build configuration.
|
# Continuous build configuration.
|
||||||
build_file: "SPIRV-Tools/kokoro/linux-clang-release/build.sh"
|
build_file: "SPIRV-Tools/kokoro/linux-clang-release/build.sh"
|
||||||
|
|
||||||
|
action {
|
||||||
|
define_artifacts {
|
||||||
|
regex: "install.tgz"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -14,3 +14,9 @@
|
|||||||
|
|
||||||
# Continuous build configuration.
|
# Continuous build configuration.
|
||||||
build_file: "SPIRV-Tools/kokoro/linux-gcc-debug/build.sh"
|
build_file: "SPIRV-Tools/kokoro/linux-gcc-debug/build.sh"
|
||||||
|
|
||||||
|
action {
|
||||||
|
define_artifacts {
|
||||||
|
regex: "install.tgz"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -14,3 +14,9 @@
|
|||||||
|
|
||||||
# Continuous build configuration.
|
# Continuous build configuration.
|
||||||
build_file: "SPIRV-Tools/kokoro/linux-gcc-release/build.sh"
|
build_file: "SPIRV-Tools/kokoro/linux-gcc-release/build.sh"
|
||||||
|
|
||||||
|
action {
|
||||||
|
define_artifacts {
|
||||||
|
regex: "install.tgz"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -14,3 +14,9 @@
|
|||||||
|
|
||||||
# Continuous build configuration.
|
# Continuous build configuration.
|
||||||
build_file: "SPIRV-Tools/kokoro/macos-clang-debug/build.sh"
|
build_file: "SPIRV-Tools/kokoro/macos-clang-debug/build.sh"
|
||||||
|
|
||||||
|
action {
|
||||||
|
define_artifacts {
|
||||||
|
regex: "install.tgz"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -14,3 +14,9 @@
|
|||||||
|
|
||||||
# Continuous build configuration.
|
# Continuous build configuration.
|
||||||
build_file: "SPIRV-Tools/kokoro/macos-clang-release/build.sh"
|
build_file: "SPIRV-Tools/kokoro/macos-clang-release/build.sh"
|
||||||
|
|
||||||
|
action {
|
||||||
|
define_artifacts {
|
||||||
|
regex: "install.tgz"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -77,7 +77,7 @@ mkdir build && cd $SRC/build
|
|||||||
# Invoke the build.
|
# Invoke the build.
|
||||||
BUILD_SHA=${KOKORO_GITHUB_COMMIT:-$KOKORO_GITHUB_PULL_REQUEST_COMMIT}
|
BUILD_SHA=${KOKORO_GITHUB_COMMIT:-$KOKORO_GITHUB_PULL_REQUEST_COMMIT}
|
||||||
echo $(date): Starting build...
|
echo $(date): Starting build...
|
||||||
cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 -GNinja -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=install -DRE2_BUILD_TESTING=OFF $ADDITIONAL_CMAKE_FLAGS $CMAKE_C_CXX_COMPILER ..
|
cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 -GNinja -DCMAKE_INSTALL_PREFIX=$KOKORO_ARTIFACTS_DIR/install -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DRE2_BUILD_TESTING=OFF $ADDITIONAL_CMAKE_FLAGS $CMAKE_C_CXX_COMPILER ..
|
||||||
|
|
||||||
echo $(date): Build everything...
|
echo $(date): Build everything...
|
||||||
ninja
|
ninja
|
||||||
@ -97,3 +97,7 @@ then
|
|||||||
fi
|
fi
|
||||||
echo $(date): ctest completed.
|
echo $(date): ctest completed.
|
||||||
|
|
||||||
|
# Package the build.
|
||||||
|
ninja install
|
||||||
|
cd $KOKORO_ARTIFACTS_DIR
|
||||||
|
tar czf install.tgz install
|
||||||
|
@ -44,6 +44,7 @@ echo $(date): Starting build...
|
|||||||
# We need Python 3. At the moment python3.7 is the newest Python on Kokoro.
|
# We need Python 3. At the moment python3.7 is the newest Python on Kokoro.
|
||||||
cmake \
|
cmake \
|
||||||
-GNinja \
|
-GNinja \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=$KOKORO_ARTIFACTS_DIR/install \
|
||||||
-DPYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python3.7 \
|
-DPYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python3.7 \
|
||||||
-DCMAKE_C_COMPILER=clang \
|
-DCMAKE_C_COMPILER=clang \
|
||||||
-DCMAKE_CXX_COMPILER=clang++ \
|
-DCMAKE_CXX_COMPILER=clang++ \
|
||||||
@ -58,3 +59,8 @@ echo $(date): Starting ctest...
|
|||||||
ctest -j4 --output-on-failure --timeout 300
|
ctest -j4 --output-on-failure --timeout 300
|
||||||
echo $(date): ctest completed.
|
echo $(date): ctest completed.
|
||||||
|
|
||||||
|
# Package the build.
|
||||||
|
ninja install
|
||||||
|
cd $KOKORO_ARTIFACTS_DIR
|
||||||
|
tar czf install.tgz install
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ if "%KOKORO_GITHUB_COMMIT%." == "." (
|
|||||||
set BUILD_SHA=%KOKORO_GITHUB_COMMIT%
|
set BUILD_SHA=%KOKORO_GITHUB_COMMIT%
|
||||||
)
|
)
|
||||||
|
|
||||||
set CMAKE_FLAGS=-GNinja -DSPIRV_BUILD_COMPRESSION=ON -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_INSTALL_PREFIX=install -DRE2_BUILD_TESTING=OFF -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe
|
set CMAKE_FLAGS=-DCMAKE_INSTALL_PREFIX=%KOKORO_ARTIFACTS_DIR%\install -GNinja -DSPIRV_BUILD_COMPRESSION=ON -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DRE2_BUILD_TESTING=OFF -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe
|
||||||
|
|
||||||
:: Skip building tests for VS2013
|
:: Skip building tests for VS2013
|
||||||
if %VS_VERSION% == 2013 (
|
if %VS_VERSION% == 2013 (
|
||||||
@ -87,6 +87,13 @@ if %VS_VERSION% NEQ 2013 (
|
|||||||
)
|
)
|
||||||
echo "Tests Completed %DATE% %TIME%"
|
echo "Tests Completed %DATE% %TIME%"
|
||||||
|
|
||||||
|
:: ################################################
|
||||||
|
:: Install and package.
|
||||||
|
:: ################################################
|
||||||
|
ninja install
|
||||||
|
cd %KOKORO_ARTIFACTS_DIR%
|
||||||
|
zip -r install.zip install
|
||||||
|
|
||||||
:: Clean up some directories.
|
:: Clean up some directories.
|
||||||
rm -rf %SRC%\build
|
rm -rf %SRC%\build
|
||||||
rm -rf %SRC%\external
|
rm -rf %SRC%\external
|
||||||
|
@ -14,3 +14,9 @@
|
|||||||
|
|
||||||
# Continuous build configuration.
|
# Continuous build configuration.
|
||||||
build_file: "SPIRV-Tools/kokoro/windows-msvc-2017-debug/build.bat"
|
build_file: "SPIRV-Tools/kokoro/windows-msvc-2017-debug/build.bat"
|
||||||
|
|
||||||
|
action {
|
||||||
|
define_artifacts {
|
||||||
|
regex: "install.zip"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -14,3 +14,9 @@
|
|||||||
|
|
||||||
# Continuous build configuration.
|
# Continuous build configuration.
|
||||||
build_file: "SPIRV-Tools/kokoro/windows-msvc-2017-release/build.bat"
|
build_file: "SPIRV-Tools/kokoro/windows-msvc-2017-release/build.bat"
|
||||||
|
|
||||||
|
action {
|
||||||
|
define_artifacts {
|
||||||
|
regex: "install.zip"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user