mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-10-18 11:10:05 +00:00
Enable Kokoro buildbots. (#1625)
This commit is contained in:
parent
c460f44fbc
commit
9795137c44
51
kokoro/android/build.sh
Normal file
51
kokoro/android/build.sh
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# Android Build Script.
|
||||||
|
|
||||||
|
# Fail on any error.
|
||||||
|
set -e
|
||||||
|
# Display commands being run.
|
||||||
|
set -x
|
||||||
|
|
||||||
|
BUILD_ROOT=$PWD
|
||||||
|
SRC=$PWD/github/SPIRV-Tools
|
||||||
|
TARGET_ARCH="armeabi-v7a with NEON"
|
||||||
|
export ANDROID_NDK=/opt/android-ndk-r15c
|
||||||
|
|
||||||
|
# Get NINJA.
|
||||||
|
wget -q https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip
|
||||||
|
unzip -q ninja-linux.zip
|
||||||
|
export PATH="$PWD:$PATH"
|
||||||
|
git clone --depth=1 https://github.com/taka-no-me/android-cmake.git android-cmake
|
||||||
|
export TOOLCHAIN_PATH=$PWD/android-cmake/android.toolchain.cmake
|
||||||
|
|
||||||
|
|
||||||
|
cd $SRC
|
||||||
|
git clone --depth=1 https://github.com/KhronosGroup/SPIRV-Headers external/spirv-headers
|
||||||
|
git clone --depth=1 https://github.com/google/googletest external/googletest
|
||||||
|
git clone --depth=1 https://github.com/google/effcee external/effcee
|
||||||
|
git clone --depth=1 https://github.com/google/re2 external/re2
|
||||||
|
|
||||||
|
mkdir build && cd $SRC/build
|
||||||
|
|
||||||
|
# Invoke the build.
|
||||||
|
BUILD_SHA=${KOKORO_GITHUB_COMMIT:-$KOKORO_GITHUB_PULL_REQUEST_COMMIT}
|
||||||
|
echo $(date): Starting build...
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release -DANDROID_NATIVE_API_LEVEL=android-14 -DANDROID_ABI="armeabi-v7a with NEON" -DSPIRV_BUILD_COMPRESSION=ON -DSPIRV_SKIP_TESTS=ON -DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN_PATH -GNinja -DANDROID_NDK=$ANDROID_NDK ..
|
||||||
|
|
||||||
|
echo $(date): Build everything...
|
||||||
|
ninja
|
||||||
|
echo $(date): Build completed.
|
17
kokoro/android/continuous.cfg
Normal file
17
kokoro/android/continuous.cfg
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Continuous build configuration.
|
||||||
|
#
|
||||||
|
build_file: "SPIRV-Tools/kokoro/android/build.sh"
|
16
kokoro/android/presubmit.cfg
Normal file
16
kokoro/android/presubmit.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Presubmit build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/android/build.sh"
|
35
kokoro/check-format/build.sh
Normal file
35
kokoro/check-format/build.sh
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# Android Build Script.
|
||||||
|
|
||||||
|
# Fail on any error.
|
||||||
|
set -e
|
||||||
|
# Display commands being run.
|
||||||
|
set -x
|
||||||
|
|
||||||
|
BUILD_ROOT=$PWD
|
||||||
|
SRC=$PWD/github/SPIRV-Tools
|
||||||
|
|
||||||
|
cd $SRC
|
||||||
|
git clone --depth=1 https://github.com/KhronosGroup/SPIRV-Headers external/spirv-headers
|
||||||
|
git clone --depth=1 https://github.com/google/googletest external/googletest
|
||||||
|
git clone --depth=1 https://github.com/google/effcee external/effcee
|
||||||
|
git clone --depth=1 https://github.com/google/re2 external/re2
|
||||||
|
curl -L http://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/clang-format-diff.py -o utils/clang-format-diff.py;
|
||||||
|
|
||||||
|
echo $(date): Check formatting...
|
||||||
|
./utils/check_code_format.sh;
|
||||||
|
echo $(date): check completed.
|
16
kokoro/check-format/presubmit_check_format.cfg
Normal file
16
kokoro/check-format/presubmit_check_format.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Presubmit build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/check-format/build.sh"
|
BIN
kokoro/img/linux.png
Normal file
BIN
kokoro/img/linux.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
kokoro/img/macos.png
Normal file
BIN
kokoro/img/macos.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
kokoro/img/windows.png
Normal file
BIN
kokoro/img/windows.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
24
kokoro/linux-clang-debug/build.sh
Normal file
24
kokoro/linux-clang-debug/build.sh
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# Linux Build Script.
|
||||||
|
|
||||||
|
# Fail on any error.
|
||||||
|
set -e
|
||||||
|
# Display commands being run.
|
||||||
|
set -x
|
||||||
|
|
||||||
|
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||||
|
source $SCRIPT_DIR/../scripts/linux/build.sh DEBUG clang
|
16
kokoro/linux-clang-debug/continuous.cfg
Normal file
16
kokoro/linux-clang-debug/continuous.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Continuous build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/linux-clang-debug/build.sh"
|
16
kokoro/linux-clang-debug/presubmit.cfg
Normal file
16
kokoro/linux-clang-debug/presubmit.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Presubmit build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/linux-clang-debug/build.sh"
|
24
kokoro/linux-clang-release/build.sh
Normal file
24
kokoro/linux-clang-release/build.sh
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# Linux Build Script.
|
||||||
|
|
||||||
|
# Fail on any error.
|
||||||
|
set -e
|
||||||
|
# Display commands being run.
|
||||||
|
set -x
|
||||||
|
|
||||||
|
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||||
|
source $SCRIPT_DIR/../scripts/linux/build.sh RELEASE clang
|
16
kokoro/linux-clang-release/continuous.cfg
Normal file
16
kokoro/linux-clang-release/continuous.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Continuous build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/linux-clang-release/build.sh"
|
16
kokoro/linux-clang-release/presubmit.cfg
Normal file
16
kokoro/linux-clang-release/presubmit.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Presubmit build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/linux-clang-release/build.sh"
|
24
kokoro/linux-gcc-debug/build.sh
Normal file
24
kokoro/linux-gcc-debug/build.sh
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# Linux Build Script.
|
||||||
|
|
||||||
|
# Fail on any error.
|
||||||
|
set -e
|
||||||
|
# Display commands being run.
|
||||||
|
set -x
|
||||||
|
|
||||||
|
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||||
|
source $SCRIPT_DIR/../scripts/linux/build.sh DEBUG gcc
|
16
kokoro/linux-gcc-debug/continuous.cfg
Normal file
16
kokoro/linux-gcc-debug/continuous.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Continuous build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/linux-gcc-debug/build.sh"
|
17
kokoro/linux-gcc-debug/presubmit.cfg
Normal file
17
kokoro/linux-gcc-debug/presubmit.cfg
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Presubmit build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/linux-gcc-debug/build.sh"
|
||||||
|
|
24
kokoro/linux-gcc-release/build.sh
Normal file
24
kokoro/linux-gcc-release/build.sh
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# Linux Build Script.
|
||||||
|
|
||||||
|
# Fail on any error.
|
||||||
|
set -e
|
||||||
|
# Display commands being run.
|
||||||
|
set -x
|
||||||
|
|
||||||
|
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||||
|
source $SCRIPT_DIR/../scripts/linux/build.sh RELEASE gcc
|
16
kokoro/linux-gcc-release/continuous.cfg
Normal file
16
kokoro/linux-gcc-release/continuous.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Continuous build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/linux-gcc-release/build.sh"
|
16
kokoro/linux-gcc-release/presubmit.cfg
Normal file
16
kokoro/linux-gcc-release/presubmit.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Presubmit build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/linux-gcc-release/build.sh"
|
25
kokoro/macos-clang-debug/build.sh
Normal file
25
kokoro/macos-clang-debug/build.sh
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# MacOS Build Script.
|
||||||
|
|
||||||
|
# Fail on any error.
|
||||||
|
set -e
|
||||||
|
# Display commands being run.
|
||||||
|
set -x
|
||||||
|
|
||||||
|
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||||
|
source $SCRIPT_DIR/../scripts/macos/build.sh Debug
|
||||||
|
|
16
kokoro/macos-clang-debug/continuous.cfg
Normal file
16
kokoro/macos-clang-debug/continuous.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Continuous build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/macos-clang-debug/build.sh"
|
16
kokoro/macos-clang-debug/presubmit.cfg
Normal file
16
kokoro/macos-clang-debug/presubmit.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Presubmit build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/macos-clang-debug/build.sh"
|
25
kokoro/macos-clang-release/build.sh
Normal file
25
kokoro/macos-clang-release/build.sh
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# MacOS Build Script.
|
||||||
|
|
||||||
|
# Fail on any error.
|
||||||
|
set -e
|
||||||
|
# Display commands being run.
|
||||||
|
set -x
|
||||||
|
|
||||||
|
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||||
|
source $SCRIPT_DIR/../scripts/macos/build.sh RelWithDebInfo
|
||||||
|
|
16
kokoro/macos-clang-release/continuous.cfg
Normal file
16
kokoro/macos-clang-release/continuous.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Continuous build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/macos-clang-release/build.sh"
|
16
kokoro/macos-clang-release/presubmit.cfg
Normal file
16
kokoro/macos-clang-release/presubmit.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Presubmit build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/macos-clang-release/build.sh"
|
56
kokoro/ndk-build/build.sh
Normal file
56
kokoro/ndk-build/build.sh
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# Linux Build Script.
|
||||||
|
|
||||||
|
# Fail on any error.
|
||||||
|
set -e
|
||||||
|
# Display commands being run.
|
||||||
|
set -x
|
||||||
|
|
||||||
|
BUILD_ROOT=$PWD
|
||||||
|
SRC=$PWD/github/SPIRV-Tools
|
||||||
|
|
||||||
|
# Get NINJA.
|
||||||
|
wget -q https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip
|
||||||
|
unzip -q ninja-linux.zip
|
||||||
|
export PATH="$PWD:$PATH"
|
||||||
|
|
||||||
|
# NDK Path
|
||||||
|
export ANDROID_NDK=/opt/android-ndk-r15c
|
||||||
|
|
||||||
|
# Get the dependencies.
|
||||||
|
cd $SRC
|
||||||
|
git clone --depth=1 https://github.com/KhronosGroup/SPIRV-Headers external/spirv-headers
|
||||||
|
git clone --depth=1 https://github.com/google/googletest external/googletest
|
||||||
|
git clone --depth=1 https://github.com/google/effcee external/effcee
|
||||||
|
git clone --depth=1 https://github.com/google/re2 external/re2
|
||||||
|
|
||||||
|
mkdir build && cd $SRC/build
|
||||||
|
mkdir libs
|
||||||
|
mkdir app
|
||||||
|
|
||||||
|
# Invoke the build.
|
||||||
|
BUILD_SHA=${KOKORO_GITHUB_COMMIT:-$KOKORO_GITHUB_PULL_REQUEST_COMMIT}
|
||||||
|
echo $(date): Starting ndk-build ...
|
||||||
|
$ANDROID_NDK/ndk-build \
|
||||||
|
-C $SRC/android_test \
|
||||||
|
NDK_PROJECT_PATH=. \
|
||||||
|
NDK_LIBS_OUT=./libs \
|
||||||
|
NDK_APP_OUT=./app \
|
||||||
|
-j8
|
||||||
|
|
||||||
|
echo $(date): ndk-build completed.
|
||||||
|
|
17
kokoro/ndk-build/continuous.cfg
Normal file
17
kokoro/ndk-build/continuous.cfg
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Continuous build configuration.
|
||||||
|
#
|
||||||
|
build_file: "SPIRV-Tools/kokoro/ndk-build/build.sh"
|
16
kokoro/ndk-build/presubmit.cfg
Normal file
16
kokoro/ndk-build/presubmit.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Presubmit build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/ndk-build/build.sh"
|
100
kokoro/scripts/linux/build.sh
Normal file
100
kokoro/scripts/linux/build.sh
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# Linux Build Script.
|
||||||
|
|
||||||
|
# Fail on any error.
|
||||||
|
set -e
|
||||||
|
# Display commands being run.
|
||||||
|
set -x
|
||||||
|
|
||||||
|
BUILD_ROOT=$PWD
|
||||||
|
SRC=$PWD/github/SPIRV-Tools
|
||||||
|
CONFIG=$1
|
||||||
|
COMPILER=$2
|
||||||
|
|
||||||
|
SKIP_TESTS="False"
|
||||||
|
BUILD_TYPE="Debug"
|
||||||
|
|
||||||
|
CMAKE_C_CXX_COMPILER=""
|
||||||
|
if [ $COMPILER = "clang" ]
|
||||||
|
then
|
||||||
|
sudo ln -s /usr/bin/clang-3.8 /usr/bin/clang
|
||||||
|
sudo ln -s /usr/bin/clang++-3.8 /usr/bin/clang++
|
||||||
|
CMAKE_C_CXX_COMPILER="-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Possible configurations are:
|
||||||
|
# ASAN, COVERAGE, RELEASE, DEBUG, DEBUG_EXCEPTION, RELEASE_MINGW
|
||||||
|
|
||||||
|
if [ $CONFIG = "RELEASE" ] || [ $CONFIG = "RELEASE_MINGW" ]
|
||||||
|
then
|
||||||
|
BUILD_TYPE="RelWithDebInfo"
|
||||||
|
fi
|
||||||
|
|
||||||
|
ADDITIONAL_CMAKE_FLAGS=""
|
||||||
|
if [ $CONFIG = "ASAN" ]
|
||||||
|
then
|
||||||
|
ADDITIONAL_CMAKE_FLAGS="-DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_C_FLAGS=-fsanitize=address"
|
||||||
|
export ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-3.4
|
||||||
|
elif [ $CONFIG = "COVERAGE" ]
|
||||||
|
then
|
||||||
|
ADDITIONAL_CMAKE_FLAGS="-DENABLE_CODE_COVERAGE=ON"
|
||||||
|
SKIP_TESTS="True"
|
||||||
|
elif [ $CONFIG = "DEBUG_EXCEPTION" ]
|
||||||
|
then
|
||||||
|
ADDITIONAL_CMAKE_FLAGS="-DDISABLE_EXCEPTIONS=ON -DDISABLE_RTTI=ON"
|
||||||
|
elif [ $CONFIG = "RELEASE_MINGW" ]
|
||||||
|
then
|
||||||
|
ADDITIONAL_CMAKE_FLAGS="-Dgtest_disable_pthreads=ON -DCMAKE_TOOLCHAIN_FILE=$SRC/cmake/linux-mingw-toolchain.cmake"
|
||||||
|
SKIP_TESTS="True"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Get NINJA.
|
||||||
|
wget -q https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip
|
||||||
|
unzip -q ninja-linux.zip
|
||||||
|
export PATH="$PWD:$PATH"
|
||||||
|
|
||||||
|
cd $SRC
|
||||||
|
git clone --depth=1 https://github.com/KhronosGroup/SPIRV-Headers external/spirv-headers
|
||||||
|
git clone --depth=1 https://github.com/google/googletest external/googletest
|
||||||
|
git clone --depth=1 https://github.com/google/effcee external/effcee
|
||||||
|
git clone --depth=1 https://github.com/google/re2 external/re2
|
||||||
|
|
||||||
|
mkdir build && cd $SRC/build
|
||||||
|
|
||||||
|
# Invoke the build.
|
||||||
|
BUILD_SHA=${KOKORO_GITHUB_COMMIT:-$KOKORO_GITHUB_PULL_REQUEST_COMMIT}
|
||||||
|
echo $(date): Starting build...
|
||||||
|
cmake -GNinja -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=install -DRE2_BUILD_TESTING=OFF $ADDITIONAL_CMAKE_FLAGS $CMAKE_C_CXX_COMPILER ..
|
||||||
|
|
||||||
|
echo $(date): Build everything...
|
||||||
|
ninja
|
||||||
|
echo $(date): Build completed.
|
||||||
|
|
||||||
|
if [ $CONFIG = "COVERAGE" ]
|
||||||
|
then
|
||||||
|
echo $(date): Check coverage...
|
||||||
|
ninja report-coverage
|
||||||
|
echo $(date): Check coverage completed.
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo $(date): Starting ctest...
|
||||||
|
if [ $SKIP_TESTS = "False" ]
|
||||||
|
then
|
||||||
|
ctest -j4 --output-on-failure --timeout 300
|
||||||
|
fi
|
||||||
|
echo $(date): ctest completed.
|
||||||
|
|
53
kokoro/scripts/macos/build.sh
Normal file
53
kokoro/scripts/macos/build.sh
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# MacOS Build Script.
|
||||||
|
|
||||||
|
# Fail on any error.
|
||||||
|
set -e
|
||||||
|
# Display commands being run.
|
||||||
|
set -x
|
||||||
|
|
||||||
|
BUILD_ROOT=$PWD
|
||||||
|
SRC=$PWD/github/SPIRV-Tools
|
||||||
|
BUILD_TYPE=$1
|
||||||
|
|
||||||
|
# Get NINJA.
|
||||||
|
wget -q https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-mac.zip
|
||||||
|
unzip -q ninja-mac.zip
|
||||||
|
chmod +x ninja
|
||||||
|
export PATH="$PWD:$PATH"
|
||||||
|
|
||||||
|
cd $SRC
|
||||||
|
git clone --depth=1 https://github.com/KhronosGroup/SPIRV-Headers external/spirv-headers
|
||||||
|
git clone --depth=1 https://github.com/google/googletest external/googletest
|
||||||
|
git clone --depth=1 https://github.com/google/effcee external/effcee
|
||||||
|
git clone --depth=1 https://github.com/google/re2 external/re2
|
||||||
|
|
||||||
|
mkdir build && cd $SRC/build
|
||||||
|
|
||||||
|
# Invoke the build.
|
||||||
|
BUILD_SHA=${KOKORO_GITHUB_COMMIT:-$KOKORO_GITHUB_PULL_REQUEST_COMMIT}
|
||||||
|
echo $(date): Starting build...
|
||||||
|
cmake -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
|
||||||
|
|
||||||
|
echo $(date): Build everything...
|
||||||
|
ninja
|
||||||
|
echo $(date): Build completed.
|
||||||
|
|
||||||
|
echo $(date): Starting ctest...
|
||||||
|
ctest -j4 --output-on-failure --timeout 300
|
||||||
|
echo $(date): ctest completed.
|
||||||
|
|
81
kokoro/scripts/windows/build.bat
Normal file
81
kokoro/scripts/windows/build.bat
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
:: Copyright (c) 2018 Google LLC.
|
||||||
|
::
|
||||||
|
:: Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
:: you may not use this file except in compliance with the License.
|
||||||
|
:: You may obtain a copy of the License at
|
||||||
|
::
|
||||||
|
:: http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
::
|
||||||
|
:: Unless required by applicable law or agreed to in writing, software
|
||||||
|
:: distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
:: See the License for the specific language governing permissions and
|
||||||
|
:: limitations under the License.
|
||||||
|
::
|
||||||
|
:: Windows Build Script.
|
||||||
|
|
||||||
|
@echo on
|
||||||
|
|
||||||
|
set BUILD_ROOT=%cd%
|
||||||
|
set SRC=%cd%\github\SPIRV-Tools
|
||||||
|
set BUILD_TYPE=%1
|
||||||
|
set VS_VERSION=%2
|
||||||
|
|
||||||
|
:: Force usage of python 2.7 rather than 3.6
|
||||||
|
set PATH=C:\python27;%PATH%
|
||||||
|
|
||||||
|
cd %SRC%
|
||||||
|
git clone --depth=1 https://github.com/KhronosGroup/SPIRV-Headers external/spirv-headers
|
||||||
|
git clone --depth=1 https://github.com/google/googletest external/googletest
|
||||||
|
git clone --depth=1 https://github.com/google/effcee external/effcee
|
||||||
|
git clone --depth=1 https://github.com/google/re2 external/re2
|
||||||
|
|
||||||
|
:: #########################################
|
||||||
|
:: set up msvc build env
|
||||||
|
:: #########################################
|
||||||
|
if %VS_VERSION% == 2017 (
|
||||||
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
|
||||||
|
echo "Using VS 2017..."
|
||||||
|
) else if %VS_VERSION% == 2015 (
|
||||||
|
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
|
||||||
|
echo "Using VS 2015..."
|
||||||
|
) else if %VS_VERSION% == 2013 (
|
||||||
|
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x64
|
||||||
|
echo "Using VS 2013..."
|
||||||
|
)
|
||||||
|
|
||||||
|
cd %SRC%
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
|
||||||
|
:: #########################################
|
||||||
|
:: Start building.
|
||||||
|
:: #########################################
|
||||||
|
echo "Starting build... %DATE% %TIME%"
|
||||||
|
if "%KOKORO_GITHUB_COMMIT%." == "." (
|
||||||
|
set BUILD_SHA=%KOKORO_GITHUB_PULL_REQUEST_COMMIT%
|
||||||
|
) else (
|
||||||
|
set BUILD_SHA=%KOKORO_GITHUB_COMMIT%
|
||||||
|
)
|
||||||
|
cmake -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 ..
|
||||||
|
if %ERRORLEVEL% GEQ 1 exit /b %ERRORLEVEL%
|
||||||
|
|
||||||
|
echo "Build everything... %DATE% %TIME%"
|
||||||
|
ninja
|
||||||
|
if %ERRORLEVEL% GEQ 1 exit /b %ERRORLEVEL%
|
||||||
|
echo "Build Completed %DATE% %TIME%"
|
||||||
|
|
||||||
|
:: #########################################
|
||||||
|
:: Run the tests.
|
||||||
|
:: #########################################
|
||||||
|
echo "Running Tests... %DATE% %TIME%"
|
||||||
|
ctest -C %BUILD_TYPE% --output-on-failure --timeout 300
|
||||||
|
if %ERRORLEVEL% GEQ 1 exit /b %ERRORLEVEL%
|
||||||
|
echo "Tests Completed %DATE% %TIME%"
|
||||||
|
|
||||||
|
:: Clean up some directories.
|
||||||
|
rm -rf %SRC%\build
|
||||||
|
rm -rf %SRC%\external
|
||||||
|
|
||||||
|
exit /b %ERRORLEVEL%
|
||||||
|
|
24
kokoro/windows-msvc-2013-release/build.bat
Normal file
24
kokoro/windows-msvc-2013-release/build.bat
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
:: Copyright (c) 2018 Google LLC.
|
||||||
|
::
|
||||||
|
:: Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
:: you may not use this file except in compliance with the License.
|
||||||
|
:: You may obtain a copy of the License at
|
||||||
|
::
|
||||||
|
:: http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
::
|
||||||
|
:: Unless required by applicable law or agreed to in writing, software
|
||||||
|
:: distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
:: See the License for the specific language governing permissions and
|
||||||
|
:: limitations under the License.
|
||||||
|
::
|
||||||
|
:: Windows Build Script.
|
||||||
|
|
||||||
|
@echo on
|
||||||
|
|
||||||
|
:: Find out the directory of the common build script.
|
||||||
|
set SCRIPT_DIR=%~dp0
|
||||||
|
|
||||||
|
:: Call with correct parameter
|
||||||
|
call %SCRIPT_DIR%\..\scripts\windows\build.bat RelWithDebInfo 2013
|
||||||
|
|
16
kokoro/windows-msvc-2013-release/continuous.cfg
Normal file
16
kokoro/windows-msvc-2013-release/continuous.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Continuous build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/windows-msvc-2013-release/build.bat"
|
16
kokoro/windows-msvc-2013-release/presubmit.cfg
Normal file
16
kokoro/windows-msvc-2013-release/presubmit.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Presubmit build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/windows-msvc-2013-release/build.bat"
|
24
kokoro/windows-msvc-2015-release/build.bat
Normal file
24
kokoro/windows-msvc-2015-release/build.bat
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
:: Copyright (c) 2018 Google LLC.
|
||||||
|
::
|
||||||
|
:: Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
:: you may not use this file except in compliance with the License.
|
||||||
|
:: You may obtain a copy of the License at
|
||||||
|
::
|
||||||
|
:: http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
::
|
||||||
|
:: Unless required by applicable law or agreed to in writing, software
|
||||||
|
:: distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
:: See the License for the specific language governing permissions and
|
||||||
|
:: limitations under the License.
|
||||||
|
::
|
||||||
|
:: Windows Build Script.
|
||||||
|
|
||||||
|
@echo on
|
||||||
|
|
||||||
|
:: Find out the directory of the common build script.
|
||||||
|
set SCRIPT_DIR=%~dp0
|
||||||
|
|
||||||
|
:: Call with correct parameter
|
||||||
|
call %SCRIPT_DIR%\..\scripts\windows\build.bat RelWithDebInfo 2015
|
||||||
|
|
16
kokoro/windows-msvc-2015-release/continuous.cfg
Normal file
16
kokoro/windows-msvc-2015-release/continuous.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Continuous build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/windows-msvc-2015-release/build.bat"
|
16
kokoro/windows-msvc-2015-release/presubmit.cfg
Normal file
16
kokoro/windows-msvc-2015-release/presubmit.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Presubmit build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/windows-msvc-2015-release/build.bat"
|
23
kokoro/windows-msvc-2017-debug/build.bat
Normal file
23
kokoro/windows-msvc-2017-debug/build.bat
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
:: Copyright (c) 2018 Google LLC.
|
||||||
|
::
|
||||||
|
:: Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
:: you may not use this file except in compliance with the License.
|
||||||
|
:: You may obtain a copy of the License at
|
||||||
|
::
|
||||||
|
:: http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
::
|
||||||
|
:: Unless required by applicable law or agreed to in writing, software
|
||||||
|
:: distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
:: See the License for the specific language governing permissions and
|
||||||
|
:: limitations under the License.
|
||||||
|
::
|
||||||
|
:: Windows Build Script.
|
||||||
|
|
||||||
|
@echo on
|
||||||
|
|
||||||
|
:: Find out the directory of the common build script.
|
||||||
|
set SCRIPT_DIR=%~dp0
|
||||||
|
|
||||||
|
:: Call with correct parameter
|
||||||
|
call %SCRIPT_DIR%\..\scripts\windows\build.bat Debug 2017
|
16
kokoro/windows-msvc-2017-debug/continuous.cfg
Normal file
16
kokoro/windows-msvc-2017-debug/continuous.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Continuous build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/windows-msvc-2017-debug/build.bat"
|
16
kokoro/windows-msvc-2017-debug/presubmit.cfg
Normal file
16
kokoro/windows-msvc-2017-debug/presubmit.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Presubmit build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/windows-msvc-2017-debug/build.bat"
|
24
kokoro/windows-msvc-2017-release/build.bat
Normal file
24
kokoro/windows-msvc-2017-release/build.bat
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
:: Copyright (c) 2018 Google LLC.
|
||||||
|
::
|
||||||
|
:: Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
:: you may not use this file except in compliance with the License.
|
||||||
|
:: You may obtain a copy of the License at
|
||||||
|
::
|
||||||
|
:: http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
::
|
||||||
|
:: Unless required by applicable law or agreed to in writing, software
|
||||||
|
:: distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
:: See the License for the specific language governing permissions and
|
||||||
|
:: limitations under the License.
|
||||||
|
::
|
||||||
|
:: Windows Build Script.
|
||||||
|
|
||||||
|
@echo on
|
||||||
|
|
||||||
|
:: Find out the directory of the common build script.
|
||||||
|
set SCRIPT_DIR=%~dp0
|
||||||
|
|
||||||
|
:: Call with correct parameter
|
||||||
|
call %SCRIPT_DIR%\..\scripts\windows\build.bat RelWithDebInfo 2017
|
||||||
|
|
16
kokoro/windows-msvc-2017-release/continuous.cfg
Normal file
16
kokoro/windows-msvc-2017-release/continuous.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Continuous build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/windows-msvc-2017-release/build.bat"
|
16
kokoro/windows-msvc-2017-release/presubmit.cfg
Normal file
16
kokoro/windows-msvc-2017-release/presubmit.cfg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2018 Google LLC.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Presubmit build configuration.
|
||||||
|
build_file: "SPIRV-Tools/kokoro/windows-msvc-2017-release/build.bat"
|
Loading…
Reference in New Issue
Block a user