File tree Expand file tree Collapse file tree 1 file changed +3
-22
lines changed
Expand file tree Collapse file tree 1 file changed +3
-22
lines changed Original file line number Diff line number Diff line change @@ -48,34 +48,15 @@ jobs:
4848 KUBECONFIG : ./kubeconfig
4949 steps :
5050 - uses : actions/checkout@v4
51- - name : " Install QEMU"
52- run : |
53- set -eux
54- sudo apt-get update
55- sudo apt-get install -y --no-install-recommends ovmf qemu-system-x86 qemu-utils
56- sudo modprobe kvm
57- # `sudo usermod -aG kvm $(whoami)` does not take an effect on GHA
58- sudo chown $(whoami) /dev/kvm
5951
60- - name : " Install Lima"
61- env :
62- GITHUB_TOKEN : ${{ github.token }} # required by `gh attestation verify`
63- run : |
64- set -eux
65- LIMA_VERSION=$(curl -fsSL https://api.github.com/repos/lima-vm/lima/releases/latest | jq -r .tag_name)
66- FILE="lima-${LIMA_VERSION:1}-Linux-x86_64.tar.gz"
67- curl -fOSL https://github.com/lima-vm/lima/releases/download/${LIMA_VERSION}/${FILE}
68- gh attestation verify --owner=lima-vm "${FILE}"
69- sudo tar Cxzvf /usr/local "${FILE}"
70- rm -f "${FILE}"
71- # For the GHA cache key
72- echo "LIMA_VERSION=${LIMA_VERSION}" >>$GITHUB_ENV
52+ - uses : lima-vm/lima-actions/setup@v1
53+ id : lima-actions-setup
7354
7455 - name : " Cache ~/.cache/lima"
7556 uses : actions/cache@v4
7657 with :
7758 path : ~/.cache/lima
78- key : lima-${{ env.LIMA_VERSION }}-${{ inputs.lima_template }}
59+ key : lima-${{ steps.lima-actions-setup.outputs.version }}
7960
8061 - run : ./hack/create-cluster-lima.sh
8162 - run : kubectl taint nodes --all node-role.kubernetes.io/control-plane- || true
You can’t perform that action at this time.
0 commit comments