File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ jobs:
372
372
timeout-minutes : 120
373
373
strategy :
374
374
matrix :
375
- oldver : ["v0.10.0 "]
375
+ oldver : ["v0.15.1 "]
376
376
steps :
377
377
- uses : actions/checkout@v4
378
378
with :
Original file line number Diff line number Diff line change @@ -27,6 +27,15 @@ function install_lima() {
27
27
fi
28
28
}
29
29
30
+ function install_lima_binary() {
31
+ ver=" $1 "
32
+ tar=" tar"
33
+ if [ ! -w " ${PREFIX} /bin" ] || [ ! -w " ${PREFIX} /share" ]; then
34
+ tar=" sudo ${tar} "
35
+ fi
36
+ curl -fsSL " https://github.com/lima-vm/lima/releases/download/${ver} /lima-${ver: 1} -$( uname -s) -$( uname -m) .tar.gz" | ${tar} Cxzvm " ${PREFIX} "
37
+ }
38
+
30
39
function uninstall_lima() {
31
40
files=" ${PREFIX} /bin/lima ${PREFIX} /bin/limactl ${PREFIX} /share/lima ${PREFIX} /share/doc/lima"
32
41
if [ -w " ${PREFIX} /bin" ] && [ -w " ${PREFIX} /share" ]; then
@@ -46,14 +55,13 @@ INFO "Uninstalling lima"
46
55
uninstall_lima
47
56
48
57
INFO " Installing the old Lima ${OLDVER} "
49
- install_lima " ${OLDVER} "
58
+ install_lima_binary " ${OLDVER} " || install_lima " ${OLDVER} "
50
59
51
60
export LIMA_INSTANCE=" test-upgrade"
52
61
53
62
INFO " Creating an instance \" ${LIMA_INSTANCE} \" with the old Lima"
54
63
defer " show_lima_log;limactl delete -f \" ${LIMA_INSTANCE} \" "
55
- # Lima older than v0.15.1 needs `-pdpe1gb` for stability: https://github.com/lima-vm/lima/pull/1487
56
- QEMU_SYSTEM_X86_64=" qemu-system-x86_64 -cpu host,-pdpe1gb" limactl start --tty=false " ${LIMA_INSTANCE} " || (
64
+ limactl start --tty=false --name=" ${LIMA_INSTANCE} " template://ubuntu-lts || (
57
65
show_lima_log
58
66
exit 1
59
67
)
You can’t perform that action at this time.
0 commit comments