Skip to content

Commit

Permalink
kokoro: add vs2022, remove vs2019-debug (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
dneto0 authored Jan 10, 2025
1 parent a3fa7cc commit 9bfb5b2
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 4 deletions.
3 changes: 2 additions & 1 deletion kokoro/scripts/windows/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ python tools\git-sync-deps
:: #########################################
if %VS_VERSION% == 2019 (
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
echo "Using VS 2019..."
) else if %VS_VERSION% == 2022 (
call "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvarsall.bat" x64
)

cmake --version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
:: Find the directory of the common build script.
set SCRIPT_DIR=%~dp0

call %SCRIPT_DIR%\..\scripts\windows\build.bat Debug 2019
call %SCRIPT_DIR%\..\scripts\windows\build.bat Debug 2022
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

build_file: "amber/kokoro/windows-msvc-2019-debug/build.bat"
build_file: "amber/kokoro/windows-vs2022-amd64-debug/build.bat"
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

build_file: "amber/kokoro/windows-msvc-2019-debug/build.bat"
build_file: "amber/kokoro/windows-vs2022-amd64-debug/build.bat"
20 changes: 20 additions & 0 deletions kokoro/windows-vs2022-amd64-release/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
:: Copyright The Amber Authors.
::
:: 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.

@echo on

:: Find the directory of the common build script.
set SCRIPT_DIR=%~dp0

call %SCRIPT_DIR%\..\scripts\windows\build.bat RelWithDebInfo 2022
15 changes: 15 additions & 0 deletions kokoro/windows-vs2022-amd64-release/continuous.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright The Amber Authors.
#
# 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.

build_file: "amber/kokoro/windows-vs2022-amd64-release/build.bat"
15 changes: 15 additions & 0 deletions kokoro/windows-vs2022-amd64-release/presubmit.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright The Amber Authors.
#
# 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.

build_file: "amber/kokoro/windows-vs2022-amd64-release/build.bat"

0 comments on commit 9bfb5b2

Please sign in to comment.