File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-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 }}
1725 - uses : actions/cache@v4
1826 with :
1927 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` (bool) : 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+ default : false
12+ description : " Install lima-additional-guestagents. Usually not needed."
1013outputs :
1114 version :
1215 description : " Resolved Lima version."
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+ if : ${{ inputs.additional_guestagents }}
52+ env :
53+ GITHUB_TOKEN : ${{ github.token }} # required by `gh attestation verify`
54+ VERSION : ${{ steps.setup-lima.outputs.version }}
55+ shell : bash
56+ run : |
57+ set -eux -o pipefail
58+ FILE="lima-additional-guestagents-${VERSION:1}-Linux-x86_64.tar.gz"
59+ curl -fOSL https://github.com/lima-vm/lima/releases/download/${VERSION}/${FILE}
60+ gh attestation verify --owner=lima-vm "${FILE}"
61+ sudo tar Cxzf /usr/local "${FILE}"
62+ rm -f "${FILE}"
You can’t perform that action at this time.
0 commit comments