File tree 2 files changed +13
-5
lines changed
actions/setup_cache_for_template
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 27
27
set -eux
28
28
arch="${{ inputs.arch }}"
29
29
template="${{ inputs.template }}"
30
- test -f "$template" || exit 1
30
+ case "$template" in
31
+ https://*)
32
+ tmp_yaml=$(mktemp -d)/template.yaml
33
+ curl -sSLf "$template" > $tmp_yaml || exit 1
34
+ template=$tmp_yaml
35
+ ;;
36
+ *)
37
+ test -f "$template" || exit 1
38
+ ;;
39
+ esac
31
40
32
41
# detect arch from template if not provided
33
42
arch="${arch:-$(yq '.arch // ""' "$template")}"
Original file line number Diff line number Diff line change @@ -367,11 +367,10 @@ jobs:
367
367
- uses : actions/setup-go@v5
368
368
with :
369
369
go-version : 1.22.x
370
- - name : Cache ~/Library/Caches/lima/download
371
- uses : actions/cache@v4
370
+ - name : Cache image used by ${{ matrix.oldver }}/examples/ubuntu-lts.yaml
371
+ uses : ./.github/ actions/setup_cache_for_template
372
372
with :
373
- path : ~/Library/Caches/lima/download
374
- key : ${{ runner.os }}-upgrade-${{ matrix.oldver }}
373
+ template : https://raw.githubusercontent.com/lima-vm/lima/${{ matrix.oldver }}/examples/ubuntu-lts.yaml
375
374
- name : Install test dependencies
376
375
run : brew install qemu bash coreutils
377
376
- name : Test
You can’t perform that action at this time.
0 commit comments