Skip to content

Commit b49cf19

Browse files
committed
Upgrade the Windows CI runner version to 2022
1 parent e8f3943 commit b49cf19

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

.github/workflows/cppcmake-windows.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
arch: [x86, x64]
19-
os: [windows-2019]
19+
os: [windows-2022]
2020
env:
2121
GH_TOKEN: ${{ github.token }}
2222
OPENSSL_VERSION: 1.1.1.2100
@@ -52,10 +52,14 @@ jobs:
5252
cache-key-prefix: "cache"
5353
version: ${{ env.QT_VERSION }}
5454

55+
- name: Install VS2019
56+
run: choco install visualstudio2019community --package-parameters "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows10SDK.19041 --add Microsoft.VisualStudio.Component.VC.Redist.MSM"
57+
5558
- name: Setup MSVC
5659
uses: ilammy/msvc-dev-cmd@v1
5760
with:
5861
arch: ${{ matrix.arch == 'x86' && 'amd64_x86' || matrix.arch == 'x64' && 'amd64'}}
62+
vsversion: 2019
5963

6064
- name: Build SQLite
6165
run: |
@@ -73,7 +77,8 @@ jobs:
7377
- name: Download SQLean extension
7478
run: |
7579
if ("${{ matrix.arch }}" -eq "x86") {
76-
gh release download --pattern "sqlean-win-x86.zip" --repo "nalgeon/sqlean"
80+
# sqlean has discontinued x86 support starting from v0.28.0
81+
gh release download 0.27.4 --pattern "sqlean-win-x86.zip" --repo "nalgeon/sqlean"
7782
Expand-Archive -Path sqlean-win-x86.zip -DestinationPath .\sqlean
7883
} else {
7984
gh release download --pattern "sqlean-win-x64.zip" --repo "nalgeon/sqlean"

.github/workflows/cppcmake.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,17 @@ jobs:
5555
with:
5656
NIGHTLY: ${{ github.event_name == 'schedule' || inputs.NIGHTLY == true }}
5757

58-
# build-windows:
59-
# needs: check-skippable
60-
# if: needs.check-skippable.outputs.skip != 'true'
61-
# uses: ./.github/workflows/cppcmake-windows.yml
62-
# secrets: inherit
63-
# with:
64-
# NIGHTLY: ${{ github.event_name == 'schedule' || inputs.NIGHTLY == true }}
58+
build-windows:
59+
needs: check-skippable
60+
if: needs.check-skippable.outputs.skip != 'true'
61+
uses: ./.github/workflows/cppcmake-windows.yml
62+
secrets: inherit
63+
with:
64+
NIGHTLY: ${{ github.event_name == 'schedule' || inputs.NIGHTLY == true }}
6565

6666
release:
6767
if: github.event_name != 'pull_request'
68-
needs: [build-macos, build-ubuntu]
69-
# needs: [build-macos, build-ubuntu, build-windows]
68+
needs: [build-macos, build-ubuntu, build-windows]
7069
name: Release
7170
runs-on: ubuntu-24.04
7271
env:
@@ -84,18 +83,17 @@ jobs:
8483
with:
8584
path: target
8685

87-
# - name: Remove unsigned Windows build
88-
# run: rm -rfv target/*unsigned*
86+
- name: Remove unsigned Windows build
87+
run: rm -rfv target/*unsigned*
8988

9089
- run: find target -type f -exec mv -v {} target \;
9190

92-
# - name: Unarchive Windows's build artifacts
93-
# run: for f in target/*.zip; do unzip -d target/ "$f" && rm -v "$f"; done
91+
- name: Unarchive Windows's build artifacts
92+
run: for f in target/*.zip; do unzip -d target/ "$f" && rm -v "$f"; done
9493

9594
- name: Release
9695
uses: softprops/action-gh-release@v2
9796
with:
98-
body: "The Windows build will not be provided for the time being. Note: #3967"
9997
files: target/*
10098
prerelease: true
10199
tag_name: ${{ env.tag_name }}

installer/windows/variables.wxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
Visual Studio 2017. The build "ARCH" will be set automatically.
4141
-->
4242

43-
<?define VCRedistPath="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Redist\MSVC\14.29.30133\MergeModules" ?>
43+
<?define VCRedistPath="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.29.30133\MergeModules" ?>
4444
<?define VCRedistFile="Microsoft_VC142_CRT_$(sys.BUILDARCH).msm" ?>
4545

4646
<!--

0 commit comments

Comments
 (0)