Skip to content

Commit 681a48b

Browse files
author
root
committed
cache
1 parent 3e3d244 commit 681a48b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: startsWith(github.ref, 'refs/tags/')
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@master
15+
- uses: actions/checkout@v4
1616
# https://github.com/taiki-e/create-gh-release-action
1717
- uses: taiki-e/create-gh-release-action@v1
1818
with:
@@ -41,10 +41,18 @@ jobs:
4141
- target: x86_64-pc-windows-msvc
4242
os: windows-latest
4343
steps:
44-
- uses: actions/checkout@master
44+
- uses: actions/checkout@v4
4545
with:
4646
submodules: recursive # 递归检出git子模块(submodules)
4747

48+
- name: Cache
49+
id: cache
50+
uses: actions/cache@v3
51+
with:
52+
path: |
53+
./target
54+
key: ${{ matrix.os }}-${{ matrix.target }}-cache
55+
4856
# 安装交叉编译工具链: https://github.com/taiki-e/setup-cross-toolchain-action
4957
# 如果安装 target 对应的工具链, 则下一步不会再安装并调用 cross 创建容器来编译, 可大幅缩短构建时间
5058
- name: Install cross-compilation tools

0 commit comments

Comments
 (0)