Skip to content

Commit 3b6cf27

Browse files
authored
Merge pull request #1055 from stan-dev/gha-wsl2
Update WSL CI to use WSL2
2 parents 8710b1f + e4741df commit 3b6cf27

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/R-CMD-check-wsl.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
if: "! contains(github.event.head_commit.message, '[ci skip]')"
1818
runs-on: windows-latest
1919

20-
name: windows-latest-WSLv1
20+
name: windows-latest-WSL2
2121

2222
env:
2323
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
@@ -47,13 +47,12 @@ jobs:
4747
- uses: Vampire/setup-wsl@v4
4848
with:
4949
distribution: Ubuntu-22.04
50-
use-cache: 'false'
50+
wsl-version: 2
51+
use-cache: 'true'
5152
set-as-default: 'true'
53+
5254
- name: Install WSL Dependencies
5355
run: |
54-
# Bugfix for current gzip (for unpacking apt packages) under WSLv1:
55-
# https://github.com/microsoft/WSL/issues/8219#issuecomment-1110508016
56-
echo -en '\x10' | sudo dd of=/usr/bin/gzip count=1 bs=1 conv=notrunc seek=$((0x189))
5756
sudo apt-get update
5857
sudo apt-get install -y build-essential libopenmpi-dev
5958
shell: wsl-bash {0}

0 commit comments

Comments
 (0)