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 1010jobs :
1111 test :
1212 runs-on : ubuntu-24.04
13+ strategy :
14+ fail-fast : false
15+ matrix :
16+ version : ["latest", "v1.1.1"]
17+ additional_guestagents : [false, true]
1318 steps :
1419 - uses : actions/checkout@v4
1520 - uses : ./setup
1621 id : lima-actions-setup
22+ with :
23+ version : ${{ matrix.version }}
24+ additional_guestagents : ${{ matrix.additional_guestagents }}
25+ - run : limactl info
1726 - uses : actions/cache@v4
1827 with :
1928 path : ~/.cache/lima
Original file line number Diff line number Diff 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` (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 77 version :
88 default : " latest"
99 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."
1014outputs :
1115 version :
1216 description : " Resolved Lima version."
4347 sudo tar Cxzf /usr/local "${FILE}"
4448 rm -f "${FILE}"
4549 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