Skip to content

Commit

Permalink
repairing systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifropc committed Dec 12, 2024
1 parent 89154d0 commit 80a1027
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/bindings-ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ jobs:
- name: Install wsl
if: runner.os == 'windows'
uses: vedantmgoyal9/setup-wsl2@main
- name: Enable systemd
if: runner.os == 'windows'
run: |
echo "[boot]
systemd=true" > /etc/wsl.conf
shell: wsl-run {0}
- name: Restart WSL
if: runner.os == 'windows'
run: |
Write-Output 'Restarting WSL...'
wsl --shutdown
# https://learn.microsoft.com/en-us/windows/wsl/wsl-config#the-8-second-rule-for-configuration-changes
# although the documentation says 8 seconds, we wait for 10 seconds to be safe
Start-Sleep -Seconds 10
- run: |
# Add Docker's official GPG key:
sudo apt-get update
Expand Down

0 comments on commit 80a1027

Please sign in to comment.