mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-19 22:43:32 +00:00
ADD: github actions
This commit is contained in:
31
.github/actions/setup-cache/action.yml
vendored
Normal file
31
.github/actions/setup-cache/action.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Setup cache
|
||||
description: Sets up sccache, CPM cache, etc.
|
||||
|
||||
inputs:
|
||||
host:
|
||||
description: 'Host platform: win or linux'
|
||||
required: true
|
||||
target:
|
||||
description: 'Target platform: win, linux'
|
||||
required: true
|
||||
use-ccache:
|
||||
description: 'Whether to use ccache/sccache'
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Setup sccache
|
||||
uses: hendrikmuhs/ccache-action@v1.2.13
|
||||
with:
|
||||
variant: sccache
|
||||
key: ${{ inputs.target }}-v1
|
||||
if: inputs.use-ccache
|
||||
|
||||
- name: Setup CPM Cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: cpm-cache
|
||||
key: cpm-${{ inputs.target }}-v1-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
|
||||
restore-keys: |
|
||||
cpm-${{ inputs.target }}-v1-
|
||||
Reference in New Issue
Block a user