From 80a1027f38decb9fd1eeb32d3dba96108fe3a3e6 Mon Sep 17 00:00:00 2001 From: Gleb Date: Thu, 12 Dec 2024 12:05:03 -0800 Subject: [PATCH] repairing systemd --- .github/workflows/bindings-ts.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/bindings-ts.yml b/.github/workflows/bindings-ts.yml index c54ae5b66..416819a03 100644 --- a/.github/workflows/bindings-ts.yml +++ b/.github/workflows/bindings-ts.yml @@ -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