Skip to content

Commit fd80166

Browse files
author
Your Name
committed
Cache downloaded tools
1 parent 9e7b888 commit fd80166

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,20 @@ jobs:
7373
with:
7474
name: build
7575

76-
- name: Download tools[${{ matrix.target }}]
76+
- name: Cache tools
77+
uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.6
78+
with:
79+
path: tools
80+
key: tools-${{ matrix.target }}-${{ github.ref_name }}
81+
restore-keys: |
82+
tools-${{ matrix.target }}-${{ github.base_ref }}
83+
84+
- name: Download tools
7785
run: |
7886
yarn --frozen-lockfile --ignore-scripts
7987
yarn download-tools --target ${{ matrix.target }}
8088
81-
- name: Create vsix package [${{ matrix.target }}]
89+
- name: Create vsix package
8290
run: |
8391
yarn package --target ${{ matrix.target }}
8492
@@ -100,9 +108,7 @@ jobs:
100108
with:
101109
pattern: vsix-package-*
102110

103-
- run: find .
104-
105111
- name: Attach packages
106112
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
107113
with:
108-
files: "*.vsix"
114+
files: "**/*.vsix"

0 commit comments

Comments
 (0)