初始版本:從 feather-vault 搬出
ci / test (push) Successful in 5s

This commit is contained in:
bot
2026-11-05 02:54:20 +00:00
commit 03f90ca0d5
5 changed files with 66 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
name: ci-cache
description: "還原與儲存 CI 的快取目錄(預設 workspace 的 .ci-home:Go 模組與建置快取、npm、工具鏈、rod 下載的 Chromium)。包一層 actions/cache,要在 checkout 之後使用;key 由呼叫端用 hashFiles 算好傳入"
inputs:
key:
description: "快取 key,例如 ci-home-${{ hashFiles('go.sum', 'web/package-lock.json') }}"
required: true
restore_keys:
description: "找不到完全相同的 key 時,依序嘗試的前綴(每行一個),例如 ci-home-"
default: ""
path:
description: "要快取的路徑"
default: .ci-home
runs:
using: composite
steps:
- uses: actions/cache@v4
with:
path: ${{ inputs.path }}
key: ${{ inputs.key }}
restore-keys: ${{ inputs.restore_keys }}