Skip to content

Commit 561165f

Browse files
committed
ci(github): update xmake cache
1 parent 13548bf commit 561165f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/ccpp.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
name: "Builds binaries on ${{ matrix.os }}"
1616
steps:
1717
- uses: actions/checkout@v1
18+
1819
- uses: xmake-io/github-action-setup-xmake@v1
1920
with:
2021
xmake-version: branch@dev
@@ -26,7 +27,7 @@ jobs:
2627
- name: Restore xmake packages
2728
uses: actions/cache@v4
2829
with:
29-
path: ~/.xmake/.cache/packages
30+
path: ${{ github.workspace }}/xmake-global/.xmake/packages
3031
key: ${{ runner.os }}-xmake-packages
3132

3233
- name: Install tools
@@ -43,6 +44,12 @@ jobs:
4344
if: runner.os == 'Linux'
4445
run: xmake config -y -k ${{ env.TARGET_KIND }} -m coverage --ci-env=y
4546

47+
- name: Cache xmake packages
48+
uses: actions/cache@v4
49+
with:
50+
path: ${{ github.workspace }}/xmake-global/.xmake/packages
51+
key: ${{ runner.os }}-xmake-packages
52+
4653
- name: Build
4754
run: |
4855
xmake
@@ -112,12 +119,6 @@ jobs:
112119
path: |
113120
dist/lcui-examples
114121
115-
- name: Cache xmake packages
116-
uses: actions/cache@v4
117-
with:
118-
path: ~/.xmake/.cache/packages
119-
key: ${{ runner.os }}-xmake-packages
120-
121122
release:
122123
if: startsWith(github.ref, 'refs/tags/v')
123124
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)