From f469a40f49bd0a1c0f9dfbd23c82e4f604c415b7 Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Sat, 23 Nov 2024 00:29:25 +0200 Subject: [PATCH] ci: Simplify limactl start command By specifying memory and cpus in the vm yaml. Signed-off-by: Nir Soffer --- .github/workflows/test.yml | 4 ++-- test/vmnet.yaml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c39e0b4..b8de60a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -82,7 +82,7 @@ jobs: run: brew install iperf3 jq - name: "Lima: vm1: prepare" run: | - limactl start --name=vm1 --set '.cpus=1 | .memory = "1GiB"' --tty=false ./test/vmnet.yaml + limactl start --name=vm1 --tty=false ./test/vmnet.yaml limactl shell vm1 ip a - name: "Lima: vm1: set up iperf3" run: | @@ -99,7 +99,7 @@ jobs: run: tail -n500 ~/.lima/vm1/*.log - name: "Lima: vm2: prepare" run: | - limactl start --name=vm2 --set '.cpus=1 | .memory = "1GiB"' --tty=false ./test/vmnet.yaml + limactl start --name=vm2 --tty=false ./test/vmnet.yaml limactl shell vm2 ip a - name: "Lima: vm2: set up iperf3" run: | diff --git a/test/vmnet.yaml b/test/vmnet.yaml index e597725..b6ce748 100644 --- a/test/vmnet.yaml +++ b/test/vmnet.yaml @@ -18,5 +18,7 @@ mounts: - location: "~" - location: "/tmp/lima" writable: true +memory: "1g" +cpus: 1 networks: - lima: shared