Skip to content

Commit 9072199

Browse files
committed
GitHub Actions: vagrant box using cache
Reference: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows Thanks to `Masatake YAMATO` comment in #3491 (comment) Signed-off-by: leleliu008 <[email protected]>
1 parent 6ca858d commit 9072199

File tree

4 files changed

+43
-1
lines changed

4 files changed

+43
-1
lines changed

.github/workflows/testing-bsds.yml renamed to .github/workflows/testing-bsds.yml.bak

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v2
2020

21+
- uses: actions/cache@v2
22+
with:
23+
path: ~/.vagrant.d/boxes
24+
key: vagrant-generic-freebsd-${{ matrix.freebsd-version }}
25+
restore-keys: |
26+
vagrant-generic-freebsd-${{ matrix.freebsd-version }}
27+
2128
# https://app.vagrantup.com/boxes/search?utf8=%E2%9C%93&sort=downloads&provider=&q=freebsd
2229
# https://github.com/leleliu008/github-actions-vagrant
2330
- uses: leleliu008/github-actions-vagrant@v2
@@ -45,6 +52,13 @@ jobs:
4552
steps:
4653
- uses: actions/checkout@v2
4754

55+
- uses: actions/cache@v2
56+
with:
57+
path: ~/.vagrant.d/boxes
58+
key: vagrant-generic-openbsd-7
59+
restore-keys: |
60+
vagrant-generic-openbsd-7
61+
4862
- uses: leleliu008/github-actions-vagrant@v2
4963
with:
5064
mem: 2048
@@ -81,6 +95,13 @@ jobs:
8195
steps:
8296
- uses: actions/checkout@v2
8397

98+
- uses: actions/cache@v2
99+
with:
100+
path: ~/.vagrant.d/boxes
101+
key: vagrant-generic-netbsd-9
102+
restore-keys: |
103+
vagrant-generic-netbsd-9
104+
84105
- uses: leleliu008/github-actions-vagrant@v2
85106
with:
86107
mem: 2048

.github/workflows/testing-freebsd.yml.bak renamed to .github/workflows/testing-freebsd.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v2
2020

21+
- uses: actions/cache@v2
22+
with:
23+
path: ~/.vagrant.d/boxes
24+
key: vagrant-generic-freebsd-${{ matrix.freebsd-version }}
25+
restore-keys: |
26+
vagrant-generic-freebsd-${{ matrix.freebsd-version }}
27+
2128
# https://app.vagrantup.com/boxes/search?utf8=%E2%9C%93&sort=downloads&provider=&q=freebsd
2229
# https://github.com/leleliu008/github-actions-vagrant
2330
- uses: leleliu008/github-actions-vagrant@v2

.github/workflows/testing-netbsd.yml.bak renamed to .github/workflows/testing-netbsd.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515

16+
- uses: actions/cache@v2
17+
with:
18+
path: ~/.vagrant.d/boxes
19+
key: vagrant-generic-netbsd-9
20+
restore-keys: |
21+
vagrant-generic-netbsd-9
22+
1623
- uses: leleliu008/github-actions-vagrant@v2
1724
with:
1825
mem: 2048

.github/workflows/testing-openbsd.yml.bak renamed to .github/workflows/testing-openbsd.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,17 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515

16+
- uses: actions/cache@v2
17+
with:
18+
path: ~/.vagrant.d/boxes
19+
key: vagrant-generic-openbsd-7
20+
restore-keys: |
21+
vagrant-generic-openbsd-7
22+
1623
- uses: leleliu008/github-actions-vagrant@v2
1724
with:
1825
mem: 2048
19-
box: generic/openbsd6
26+
box: generic/openbsd7
2027
log: warn
2128
run: |
2229
export AUTOCONF_VERSION=2.69

0 commit comments

Comments
 (0)