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

Commit

Permalink
modify chach action to get presets test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Iason Nikolas authored and Iason Nikolas committed Apr 18, 2022
1 parent 26bcdf0 commit e12ce1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
14 changes: 4 additions & 10 deletions .github/actions/setup_cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@
name: 'setup_cache'
description: 'sets up the shared cache'
inputs:
compiler:
configure_preset:
required: true
type: string
build_type:
required: true
type: string
generator:
required: true
type: string
developer_mode:
build_preset:
required: true
type: string

Expand All @@ -32,7 +26,7 @@ runs:
${{ env.XDG_CACHE_HOME }}/vcpkg/archives
${{ env.LOCALAPPDATA }}\vcpkg\archives
${{ env.APPDATA }}\vcpkg\archives
key: ${{ runner.os }}-${{ inputs.compiler }}-${{ inputs.build_type }}-${{ hashFiles('./conanfile.txt')}}-${{ inputs.generator }}-${{ inputs.developer_mode }}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}}
key: ${{ runner.os }}-${{ inputs.configure_preset }}-${{ inputs.build_preset }}-${{ hashFiles('./conanfile.txt')}}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}}
restore-keys: |
${{ runner.os }}-${{ inputs.compiler }}-${{ inputs.build_type }}-${{ hashFiles('./conanfile.txt') }}
${{ runner.os }}-${{ inputs.configure_preset }}-${{ inputs.build_preset }}-${{ hashFiles('./conanfile.txt') }}
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,8 @@ jobs:
- name: Setup Cache
uses: ./.github/actions/setup_cache
with:
compiler: ${{ matrix.compiler }}
build_type: ${{ matrix.build_type }}
developer_mode: ${{ matrix.developer_mode }}
generator: ${{ matrix.generator }}
configure_preset: ${{ matrix.configure_preset }}
build_preset: ${{ matrix.build_test_preset }}

- name: Setup Cpp
uses: aminya/setup-cpp@v1
Expand Down

0 comments on commit e12ce1f

Please sign in to comment.