Skip to content

Commit 8381613

Browse files
committed
save
1 parent 7f18af8 commit 8381613

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/zxc-compile-code.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,14 @@ jobs:
7070
- name: Checkout Code
7171
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
7272

73-
- name: WSL Install
74-
uses: Vampire/setup-wsl@v3
75-
if: ${{ runner.os == 'Windows' && (inputs.enable-unit-tests || inputs.enable-e2e-tests) && !cancelled() && !failure() }}
76-
with:
77-
distribution: Ubuntu-22.04
78-
set-as-default: 'true'
79-
73+
- name: Update WSL
74+
if: ${{ runner.os == 'Windows' && inputs.enable-e2e-tests && !cancelled() && !failure() }}
75+
shell: pwsh
76+
run: |
77+
wsl --update
78+
wsl --list --online
79+
wsl --set-default-version 2
80+
wsl --install Ubuntu-22.04
8081
8182
- shell: wsl-bash {0}
8283
if: ${{ runner.os == 'Windows' && inputs.enable-e2e-tests && !cancelled() && !failure() }}

0 commit comments

Comments
 (0)