File tree Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 10
10
jobs :
11
11
test :
12
12
runs-on : ubuntu-24.04
13
+ strategy :
14
+ fail-fast : false
15
+ matrix :
16
+ version : ["latest", "v1.1.1"]
17
+ additional_guestagents : [false, true]
13
18
steps :
14
19
- uses : actions/checkout@v4
15
20
- uses : ./setup
16
21
id : lima-actions-setup
22
+ with :
23
+ version : ${{ matrix.version }}
24
+ additional_guestagents : ${{ matrix.additional_guestagents }}
25
+ - run : limactl info
17
26
- uses : actions/cache@v4
18
27
with :
19
28
path : ~/.cache/lima
Original file line number Diff line number Diff line change @@ -24,3 +24,11 @@ steps:
24
24
25
25
- run : ssh lima-default ls -l /tmp/repo
26
26
` ` `
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` (boolean) : Install lima-additional-guestagents. Usually not needed. Defaults to `false`.
32
+
33
+ # ## `lima-vm/lima-actions/ssh`
34
+ None
Original file line number Diff line number Diff line change 7
7
version :
8
8
default : " latest"
9
9
description : " Lima version. e.g., `latest`, `v1.0.6`"
10
+ additional_guestagents :
11
+ type : boolean
12
+ default : false
13
+ description : " Install lima-additional-guestagents. Usually not needed."
10
14
outputs :
11
15
version :
12
16
description : " Resolved Lima version."
43
47
sudo tar Cxzf /usr/local "${FILE}"
44
48
rm -f "${FILE}"
45
49
echo "version=${VERSION}" >>$GITHUB_OUTPUT
50
+ - name : " Set up lima-additional-guestagents"
51
+ id : " setup-lima-additional-guestagents"
52
+ # fromJSON is needed here for booleans
53
+ if : ${{ fromJSON(inputs.additional_guestagents) }}
54
+ env :
55
+ GITHUB_TOKEN : ${{ github.token }} # required by `gh attestation verify`
56
+ VERSION : ${{ steps.setup-lima.outputs.version }}
57
+ shell : bash
58
+ run : |
59
+ set -eux -o pipefail
60
+ FILE="lima-additional-guestagents-${VERSION:1}-Linux-x86_64.tar.gz"
61
+ curl -fOSL https://github.com/lima-vm/lima/releases/download/${VERSION}/${FILE}
62
+ gh attestation verify --owner=lima-vm "${FILE}"
63
+ sudo tar Cxzf /usr/local "${FILE}"
64
+ rm -f "${FILE}"
You can’t perform that action at this time.
0 commit comments