Skip to content

Commit 1dc4124

Browse files
Cache Buildx
1 parent 59eb514 commit 1dc4124

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,23 @@ jobs:
7272
- name: Install package
7373
run: flit install
7474

75+
- name: Cache Buildx
76+
id: cache-buildx
77+
uses: actions/cache@v2
78+
with:
79+
path: ~/.docker/cli-plugins/docker-buildx
80+
key: buildx
81+
7582
- name: Clone buildx
7683
uses: actions/checkout@master
84+
if: steps.cache-buildx.outputs.cache-hit != 'true'
7785
with:
7886
repository: docker/buildx
7987
path: buildx
8088
ref: fd6de6b6aeac780c59e5079a96b068076b676d73
8189

8290
- name: Install buildx
91+
if: steps.cache-buildx.outputs.cache-hit != 'true'
8392
working-directory: ./buildx
8493
run: make install
8594

0 commit comments

Comments
 (0)