Skip to content

Commit

Permalink
ci: Simplify limactl start command
Browse files Browse the repository at this point in the history
By specifying memory and cpus in the vm yaml.

Signed-off-by: Nir Soffer <[email protected]>
  • Loading branch information
nirs committed Nov 22, 2024
1 parent 5fed4a3 commit f469a40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |
Expand Down
2 changes: 2 additions & 0 deletions test/vmnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ mounts:
- location: "~"
- location: "/tmp/lima"
writable: true
memory: "1g"
cpus: 1
networks:
- lima: shared

0 comments on commit f469a40

Please sign in to comment.