Skip to content

Commit

Permalink
ci(github): update xmake cache
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Dec 7, 2024
1 parent 9859603 commit 5d1f46f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
name: "Builds binaries on ${{ matrix.os }}"
steps:
- uses: actions/checkout@v1

- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: branch@dev
Expand All @@ -26,7 +27,7 @@ jobs:
- name: Restore xmake packages
uses: actions/cache@v4
with:
path: ~/.xmake/.cache/packages
path: ${{ github.workspace }}/xmake-global/.xmake/packages
key: ${{ runner.os }}-xmake-packages

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

- name: Cache xmake packages
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/xmake-global/.xmake/packages
key: ${{ runner.os }}-xmake-packages

- name: Build
run: |
xmake
Expand Down Expand Up @@ -112,12 +119,6 @@ jobs:
path: |
dist/lcui-examples
- name: Cache xmake packages
uses: actions/cache@v4
with:
path: ~/.xmake/.cache/packages
key: ${{ runner.os }}-xmake-packages

release:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5d1f46f

Please sign in to comment.