Skip to content

Commit 67ca798

Browse files
committed
Fix windows WSL setup timeouts
Disable-check: force-changelog-file
1 parent cc9d197 commit 67ca798

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/windows-build-and-test.yaml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,20 @@ jobs:
8686
- name: Setup WSL
8787
uses: Vampire/[email protected]
8888
with:
89-
additional-packages:
90-
cmake
91-
gawk
92-
gcc
93-
git
94-
gnupg
95-
make
96-
postgresql-client
97-
postgresql-common
98-
tree
89+
distribution: Debian
90+
91+
- name: Configure apt retries and timeout in WSL
92+
shell: wsl-bash {0}
93+
run: |
94+
echo 'Acquire::Retries "10";' >> /etc/apt/apt.conf.d/99retries
95+
echo 'Acquire::http::Timeout "240";' >> /etc/apt/apt.conf.d/99retries
96+
echo 'Acquire::https::Timeout "240";' >> /etc/apt/apt.conf.d/99retries
97+
98+
- name: Install additional packages in WSL
99+
shell: wsl-bash {0}
100+
run: |
101+
apt-get update
102+
apt-get install --yes --no-install-recommends cmake gawk gcc git gnupg make postgresql-client postgresql-common tree
99103
100104
- name: Configure git
101105
# Since we want to reuse the checkout in the WSL environment

0 commit comments

Comments
 (0)