File tree 1 file changed +25
-1
lines changed
1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 73
73
74
74
windows :
75
75
name : " Windows tests"
76
- runs-on : windows-2022
76
+ runs-on : windows-2022-8-cores
77
77
timeout-minutes : 30
78
78
steps :
79
+ - name : Enable WSL2
80
+ run : |
81
+ wsl --set-default-version 2
82
+ wsl --update
83
+ wsl --status
84
+ wsl --list --online
85
+ - name : Install WSL2 distro
86
+ timeout-minutes : 3
87
+ run : |
88
+ # FIXME: At least one distro has to be installed here,
89
+ # otherwise `wsl --list --verbose` (called from Lima) fails:
90
+ # https://github.com/lima-vm/lima/pull/1826#issuecomment-1729993334
91
+ # The distro image itself is not consumed by Lima.
92
+ # ------------------------------------------------------------------
93
+ # Ubuntu-22.04: gets stuck in some infinite loop during adduser
94
+ # OracleLinux_9_1: almostly silently fails, and just prints "Usage: adduser [options] LOGIN"
95
+ wsl --install -d openSUSE-Leap-15.5
96
+ wsl --list --verbose
79
97
- uses : actions/checkout@v4
80
98
with :
81
99
fetch-depth : 1
@@ -86,6 +104,12 @@ jobs:
86
104
run : go test -v ./...
87
105
- name : Make
88
106
run : make
107
+ - name : Install
108
+ run : make install
109
+ # FIXME: installing to /usr/local/ doesn't seem correct for Windows
110
+ - name : Test
111
+ run : |
112
+ .\_output\bin\limactl.exe start template://experimental/wsl2
89
113
90
114
integration :
91
115
name : Integration tests
You can’t perform that action at this time.
0 commit comments