Add xmake cache folder
This commit is contained in:
parent
2946fc7f0d
commit
5fb974f24c
|
|
@ -29,7 +29,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get current date as package key
|
- name: Get current date as package key
|
||||||
id: pkg_key
|
id: cache_key
|
||||||
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|
@ -62,6 +62,7 @@ jobs:
|
||||||
uses: xmake-io/github-action-setup-xmake@v1
|
uses: xmake-io/github-action-setup-xmake@v1
|
||||||
with:
|
with:
|
||||||
xmake-version: branch@dev
|
xmake-version: branch@dev
|
||||||
|
actions-cache-folder: .xmake-cache-W${{ steps.cache_key.outputs.key }}
|
||||||
|
|
||||||
# Update xmake repository (in order to have the file that will be cached)
|
# Update xmake repository (in order to have the file that will be cached)
|
||||||
- name: Update xmake repository
|
- name: Update xmake repository
|
||||||
|
|
@ -84,14 +85,14 @@ jobs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
|
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
|
||||||
key: Linux-${{ matrix.config.arch }}-coverage-${{ steps.dep_hash_linux.outputs.hash }}-W${{ steps.pkg_key.outputs.key }}
|
key: Linux-${{ matrix.config.arch }}-coverage-${{ steps.dep_hash_linux.outputs.hash }}-W${{ steps.cache_key.outputs.key }}
|
||||||
|
|
||||||
- name: Retrieve cached xmake dependencies (Windows)
|
- name: Retrieve cached xmake dependencies (Windows)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ env.XMAKE_GLOBALDIR }}\.xmake\packages
|
path: ${{ env.XMAKE_GLOBALDIR }}\.xmake\packages
|
||||||
key: MSVC-${{ matrix.config.arch }}-coverage-${{ steps.dep_hash_windows.outputs.hash }}-W${{ steps.pkg_key.outputs.key }}
|
key: MSVC-${{ matrix.config.arch }}-coverage-${{ steps.dep_hash_windows.outputs.hash }}-W${{ steps.cache_key.outputs.key }}
|
||||||
|
|
||||||
# Setup compilation mode and install project dependencies
|
# Setup compilation mode and install project dependencies
|
||||||
- name: Configure xmake and install dependencies
|
- name: Configure xmake and install dependencies
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get current date as package key
|
- name: Get current date as package key
|
||||||
id: pkg_key
|
id: cache_key
|
||||||
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|
@ -50,6 +50,7 @@ jobs:
|
||||||
uses: xmake-io/github-action-setup-xmake@v1
|
uses: xmake-io/github-action-setup-xmake@v1
|
||||||
with:
|
with:
|
||||||
xmake-version: branch@dev
|
xmake-version: branch@dev
|
||||||
|
actions-cache-folder: .xmake-cache-W${{ steps.cache_key.outputs.key }}
|
||||||
|
|
||||||
# Update xmake repository (in order to have the file that will be cached)
|
# Update xmake repository (in order to have the file that will be cached)
|
||||||
- name: Update xmake repository
|
- name: Update xmake repository
|
||||||
|
|
@ -65,7 +66,7 @@ jobs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
|
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
|
||||||
key: Linux-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-W${{ steps.pkg_key.outputs.key }}
|
key: Linux-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-W${{ steps.cache_key.outputs.key }}
|
||||||
|
|
||||||
# Setup compilation mode and install project dependencies
|
# Setup compilation mode and install project dependencies
|
||||||
- name: Configure xmake and install dependencies
|
- name: Configure xmake and install dependencies
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get current date as package key
|
- name: Get current date as package key
|
||||||
id: pkg_key
|
id: cache_key
|
||||||
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|
@ -43,6 +43,7 @@ jobs:
|
||||||
uses: xmake-io/github-action-setup-xmake@v1
|
uses: xmake-io/github-action-setup-xmake@v1
|
||||||
with:
|
with:
|
||||||
xmake-version: branch@dev
|
xmake-version: branch@dev
|
||||||
|
actions-cache-folder: .xmake-cache-W${{ steps.cache_key.outputs.key }}
|
||||||
|
|
||||||
# Update xmake repository (in order to have the file that will be cached)
|
# Update xmake repository (in order to have the file that will be cached)
|
||||||
- name: Update xmake repository
|
- name: Update xmake repository
|
||||||
|
|
@ -58,7 +59,7 @@ jobs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
|
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
|
||||||
key: macOS-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-W${{ steps.pkg_key.outputs.key }}
|
key: macOS-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-W${{ steps.cache_key.outputs.key }}
|
||||||
|
|
||||||
# Setup compilation mode and install project dependencies
|
# Setup compilation mode and install project dependencies
|
||||||
- name: Configure xmake and install dependencies
|
- name: Configure xmake and install dependencies
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get current date as package key
|
- name: Get current date as package key
|
||||||
id: pkg_key
|
id: cache_key
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|
@ -57,7 +57,7 @@ jobs:
|
||||||
id: xmake_cache
|
id: xmake_cache
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}/xmake_git
|
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
|
# Build xmake
|
||||||
- name: Setup xmake
|
- name: Setup xmake
|
||||||
|
|
@ -88,7 +88,7 @@ jobs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
|
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
|
# Setup compilation mode and install project dependencies
|
||||||
- name: Configure xmake and install dependencies
|
- name: Configure xmake and install dependencies
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get current date as package key
|
- name: Get current date as package key
|
||||||
id: pkg_key
|
id: cache_key
|
||||||
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|
@ -59,7 +59,7 @@ jobs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ env.XMAKE_GLOBALDIR }}\.xmake\packages
|
path: ${{ env.XMAKE_GLOBALDIR }}\.xmake\packages
|
||||||
key: MSVC-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-W${{ steps.pkg_key.outputs.key }}
|
key: MSVC-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-W${{ steps.cache_key.outputs.key }}
|
||||||
|
|
||||||
# Setup compilation mode and install project dependencies
|
# Setup compilation mode and install project dependencies
|
||||||
- name: Configure xmake and install dependencies
|
- name: Configure xmake and install dependencies
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue