Skip to content

Commit 8cc5a35

Browse files
committed
Windows CI setup to use winget instead of choco
Use winget instead of choco in the CI script. Disable-check: force-changelog-file Disable-check: approval-count
1 parent 208e646 commit 8cc5a35

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/windows-packages.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,21 @@ jobs:
4343
echo "version=$version" >>$env:GITHUB_OUTPUT
4444
4545
- name: Install PostgreSQL ${{ matrix.pg }}
46+
shell: pwsh
4647
run: |
4748
choco feature disable --name=usePackageExitCodes
4849
choco feature disable --name=showDownloadProgress
4950
choco config set webRequestTimeoutSeconds 120
5051
choco config set commandExecutionTimeoutSeconds 600
5152
choco uninstall postgresql --yes
5253
winget install --id PostgreSQL.PostgreSQL.${{ matrix.pg }} --accept-source-agreements --accept-package-agreements --disable-interactivity
53-
choco install wget
54+
winget install --id=JernejSimoncic.Wget -e --accept-source-agreements --accept-package-agreements --disable-interactivity
55+
wget --version
56+
57+
- name: Add winget shims to PATH
58+
shell: pwsh
59+
run: |
60+
echo "$env:LOCALAPPDATA\Microsoft\WinGet\Links" >> $env:GITHUB_PATH
5461
5562
- name: Download TimescaleDB
5663
run: "wget --quiet --tries=6 --waitretry=15 -O timescaledb.zip 'https://github.com/timescale/timescaledb/releases/download/\

0 commit comments

Comments
 (0)