Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit e12ce1f

Browse files
Iason NikolasIason Nikolas
Iason Nikolas
authored and
Iason Nikolas
committed
modify chach action to get presets test ci
1 parent 26bcdf0 commit e12ce1f

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

.github/actions/setup_cache/action.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,10 @@
22
name: 'setup_cache'
33
description: 'sets up the shared cache'
44
inputs:
5-
compiler:
5+
configure_preset:
66
required: true
77
type: string
8-
build_type:
9-
required: true
10-
type: string
11-
generator:
12-
required: true
13-
type: string
14-
developer_mode:
8+
build_preset:
159
required: true
1610
type: string
1711

@@ -32,7 +26,7 @@ runs:
3226
${{ env.XDG_CACHE_HOME }}/vcpkg/archives
3327
${{ env.LOCALAPPDATA }}\vcpkg\archives
3428
${{ env.APPDATA }}\vcpkg\archives
35-
key: ${{ runner.os }}-${{ inputs.compiler }}-${{ inputs.build_type }}-${{ hashFiles('./conanfile.txt')}}-${{ inputs.generator }}-${{ inputs.developer_mode }}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}}
29+
key: ${{ runner.os }}-${{ inputs.configure_preset }}-${{ inputs.build_preset }}-${{ hashFiles('./conanfile.txt')}}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}}
3630
restore-keys: |
37-
${{ runner.os }}-${{ inputs.compiler }}-${{ inputs.build_type }}-${{ hashFiles('./conanfile.txt') }}
31+
${{ runner.os }}-${{ inputs.configure_preset }}-${{ inputs.build_preset }}-${{ hashFiles('./conanfile.txt') }}
3832

.github/workflows/ci.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,8 @@ jobs:
131131
- name: Setup Cache
132132
uses: ./.github/actions/setup_cache
133133
with:
134-
compiler: ${{ matrix.compiler }}
135-
build_type: ${{ matrix.build_type }}
136-
developer_mode: ${{ matrix.developer_mode }}
137-
generator: ${{ matrix.generator }}
134+
configure_preset: ${{ matrix.configure_preset }}
135+
build_preset: ${{ matrix.build_test_preset }}
138136

139137
- name: Setup Cpp
140138
uses: aminya/setup-cpp@v1

0 commit comments

Comments
 (0)