Skip to content

Commit

Permalink
Merge pull request #1055 from stan-dev/gha-wsl2
Browse files Browse the repository at this point in the history
Update WSL CI to use WSL2
  • Loading branch information
andrjohns authored Jan 4, 2025
2 parents 8710b1f + e4741df commit 3b6cf27
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/R-CMD-check-wsl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
if: "! contains(github.event.head_commit.message, '[ci skip]')"
runs-on: windows-latest

name: windows-latest-WSLv1
name: windows-latest-WSL2

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
Expand Down Expand Up @@ -47,13 +47,12 @@ jobs:
- uses: Vampire/setup-wsl@v4
with:
distribution: Ubuntu-22.04
use-cache: 'false'
wsl-version: 2
use-cache: 'true'
set-as-default: 'true'

- name: Install WSL Dependencies
run: |
# Bugfix for current gzip (for unpacking apt packages) under WSLv1:
# https://github.com/microsoft/WSL/issues/8219#issuecomment-1110508016
echo -en '\x10' | sudo dd of=/usr/bin/gzip count=1 bs=1 conv=notrunc seek=$((0x189))
sudo apt-get update
sudo apt-get install -y build-essential libopenmpi-dev
shell: wsl-bash {0}
Expand Down

0 comments on commit 3b6cf27

Please sign in to comment.