Skip to content

Commit 6aa5401

Browse files
committed
fix(workflows): Cache Save?
1 parent 4662833 commit 6aa5401

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@ jobs:
2020
with:
2121
path: swiftly
2222

23-
- name: Set up cache for Xmake
24-
id: xmake-cache
25-
uses: actions/cache@v2
26-
with:
27-
path: ${{ github.workspace }}/swiftly/build/.build_cache
28-
key: ${{ runner.os }}-xmake-${{ hashFiles('**/*') }}
29-
restore-keys: |
30-
${{ runner.os }}-xmake-
31-
3223
- name: Generate Documentation
3324
working-directory: swiftly/docgen
3425
run: |
@@ -60,6 +51,14 @@ jobs:
6051
path: swiftly
6152
submodules: recursive
6253

54+
- name: Restore cached XMake Build
55+
id: cache-xmake-build
56+
uses: actions/cache/restore@v4
57+
with:
58+
path: |
59+
${{ github.workspace }}/swiftly/build/.build_cache
60+
key: ${{ runner.os }}-swiftly-build
61+
6362
- name: Install XMake
6463
uses: xmake-io/github-action-setup-xmake@v1
6564
with:
@@ -121,4 +120,12 @@ jobs:
121120
uses: actions/upload-artifact@v4
122121
with:
123122
name: Swiftly Plugin Depot Linux
124-
path: ${{ github.workspace }}/swiftly/build/package
123+
path: ${{ github.workspace }}/swiftly/build/package
124+
125+
- name: Save cached XMake Build
126+
id: save-xmake-build
127+
uses: actions/cache/save@v4
128+
with:
129+
path: |
130+
${{ github.workspace }}/swiftly/build/.build_cache
131+
key: ${{ steps.cache-xmake-build.outputs.cache-primary-key }}

0 commit comments

Comments
 (0)