Add xmake cache folder
This commit is contained in:
6
.github/workflows/msys2-build.yml
vendored
6
.github/workflows/msys2-build.yml
vendored
@@ -33,7 +33,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Get current date as package key
|
||||
id: pkg_key
|
||||
id: cache_key
|
||||
shell: bash
|
||||
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
||||
|
||||
@@ -57,7 +57,7 @@ jobs:
|
||||
id: xmake_cache
|
||||
with:
|
||||
path: ${{ github.workspace }}/xmake_git
|
||||
key: MinGW-XMake-W${{ steps.pkg_key.outputs.key }}
|
||||
key: MinGW-XMake-W${{ steps.cache_key.outputs.key }}
|
||||
|
||||
# Build xmake
|
||||
- name: Setup xmake
|
||||
@@ -88,7 +88,7 @@ jobs:
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
|
||||
key: MinGW-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-W${{ steps.pkg_key.outputs.key }}
|
||||
key: MinGW-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-W${{ steps.cache_key.outputs.key }}
|
||||
|
||||
# Setup compilation mode and install project dependencies
|
||||
- name: Configure xmake and install dependencies
|
||||
|
||||
Reference in New Issue
Block a user