Skip to content

Commit ed93cda

Browse files
committed
Add additional_guestagents (default: false)
Installs `lima-additional-guestagents`. Usually not needed. Signed-off-by: Akihiro Suda <[email protected]>
1 parent be564a1 commit ed93cda

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,17 @@ on:
1010
jobs:
1111
test:
1212
runs-on: ubuntu-24.04
13+
strategy:
14+
fail-fast: false
15+
version: ["latest", "v1.1.1"]
16+
additional_guestagents: [false, true]
1317
steps:
1418
- uses: actions/checkout@v4
1519
- uses: ./setup
1620
id: lima-actions-setup
21+
with:
22+
version: ${{ matrix.version }}
23+
additional_guestagents: ${{ matrix.additional_guestagents }}
1724
- uses: actions/cache@v4
1825
with:
1926
path: ~/.cache/lima

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,11 @@ steps:
2424

2525
- run: ssh lima-default ls -l /tmp/repo
2626
```
27+
28+
## Optional parameters
29+
### `lima-vm/lima-actions/setup`
30+
- `version` (string): Lima version. e.g., "latest", "v1.0.6". Defaults to "latest".
31+
- `additional_guestagents` (bool): Install lima-additional-guestagents. Usually not needed. Defaults to `false`.
32+
33+
### `lima-vm/lima-actions/ssh`
34+
None

setup/action.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ inputs:
77
version:
88
default: "latest"
99
description: "Lima version. e.g., `latest`, `v1.0.6`"
10+
additional_guestagents:
11+
default: false
12+
description: "Install lima-additional-guestagents. Usually not needed."
1013
outputs:
1114
version:
1215
description: "Resolved Lima version."
@@ -43,3 +46,16 @@ runs:
4346
sudo tar Cxzf /usr/local "${FILE}"
4447
rm -f "${FILE}"
4548
echo "version=${VERSION}" >>$GITHUB_OUTPUT
49+
- name: "Set up lima-additional-guestagents"
50+
id: "setup-lima-additional-guestagents"
51+
env:
52+
GITHUB_TOKEN: ${{ github.token }} # required by `gh attestation verify`
53+
VERSION: ${{ outputs.version }}
54+
shell: bash
55+
run: |
56+
set -eux -o pipefail
57+
FILE="lima-additional-guestagents-${VERSION:1}-Linux-x86_64.tar.gz"
58+
curl -fOSL https://github.com/lima-vm/lima/releases/download/${VERSION}/${FILE}
59+
gh attestation verify --owner=lima-vm "${FILE}"
60+
sudo tar Cxzf /usr/local "${FILE}"
61+
rm -f "${FILE}"

0 commit comments

Comments
 (0)