Skip to content

Commit f469a40

Browse files
committed
ci: Simplify limactl start command
By specifying memory and cpus in the vm yaml. Signed-off-by: Nir Soffer <[email protected]>
1 parent 5fed4a3 commit f469a40

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
run: brew install iperf3 jq
8383
- name: "Lima: vm1: prepare"
8484
run: |
85-
limactl start --name=vm1 --set '.cpus=1 | .memory = "1GiB"' --tty=false ./test/vmnet.yaml
85+
limactl start --name=vm1 --tty=false ./test/vmnet.yaml
8686
limactl shell vm1 ip a
8787
- name: "Lima: vm1: set up iperf3"
8888
run: |
@@ -99,7 +99,7 @@ jobs:
9999
run: tail -n500 ~/.lima/vm1/*.log
100100
- name: "Lima: vm2: prepare"
101101
run: |
102-
limactl start --name=vm2 --set '.cpus=1 | .memory = "1GiB"' --tty=false ./test/vmnet.yaml
102+
limactl start --name=vm2 --tty=false ./test/vmnet.yaml
103103
limactl shell vm2 ip a
104104
- name: "Lima: vm2: set up iperf3"
105105
run: |

test/vmnet.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ mounts:
1818
- location: "~"
1919
- location: "/tmp/lima"
2020
writable: true
21+
memory: "1g"
22+
cpus: 1
2123
networks:
2224
- lima: shared

0 commit comments

Comments
 (0)