Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 43 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ jobs:

build_windows_vs16:
needs: source
runs-on: windows-2019
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
Expand All @@ -800,6 +800,48 @@ jobs:
- default
- locked
steps:
- name: Download Visual Studio 2019 Enterprise bootstrapper
shell: powershell
run: |
Invoke-WebRequest -Uri "https://aka.ms/vs/16/release/vs_Enterprise.exe" -OutFile "vs_Enterprise.exe"
Get-Item .\vs_Enterprise.exe | Select-Object Name,Length

- name: Remove previous offline layout folder if exists
shell: powershell
run: |
if (Test-Path .\vs_2019_offline) { Remove-Item -Recurse -Force .\vs_2019_offline }

- name: Create offline layout for Visual Studio 2019 Enterprise with logging
shell: powershell
run: |
.\vs_Enterprise.exe --layout .\vs_2019_offline --lang en-US --log layout.log
if (Test-Path .\layout.log) {
Get-Content .\layout.log -Tail 50
} else {
Write-Output "layout.log was not created."
}

- name: Verify offline layout folder contents
shell: powershell
run: |
if (Test-Path .\vs_2019_offline) {
Get-ChildItem -Recurse .\vs_2019_offline | Select-Object FullName,Length | Format-Table -AutoSize
} else {
Write-Output "Layout folder not created"
exit 1
}

- name: Install Visual Studio 2019 from offline layout silently
shell: powershell
run: |
.\vs_Enterprise.exe --quiet --wait --norestart --noUpdateInstaller --noWeb --allWorkloads --includeRecommended --includeOptional --layout .\vs_2019_offline

- name: List Visual Studio installations with vswhere
shell: powershell
run: |
$vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
& $vswhere -all -products * -prerelease -format text

- name: Install dependencies
shell: cmd
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ jobs:

build_windows:
needs: source_abi
runs-on: windows-2019
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -341,7 +341,7 @@ jobs:
echo call configure.bat --disable-all --enable-cli --disable-zts --enable-couchbase >> task.bat
echo nmake >> task.bat
dir
call c:\php\php-sdk\phpsdk-vs16-x64.bat -t task.bat
call c:\php\php-sdk\phpsdk-vs17-x64.bat -t task.bat
dir
if defined CB_ABI_VERSION (
echo Renaming so file to php_couchbase_%CB_ABI_VERSION%.dll
Expand Down Expand Up @@ -382,7 +382,7 @@ jobs:
needs:
- source_abi
- build_windows
runs-on: windows-2019
runs-on: windows-2022
strategy:
fail-fast: false
steps:
Expand Down
Loading