Skip to content

Commit

Permalink
changed caching key names
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanKa committed Apr 5, 2024
1 parent e233249 commit ba8de98
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
${{ env.CONAN_USER_HOME }}
~/.cache/pip
~/.ccache
key: ${{ runner.os }}-${{ matrix.buildtype }}-${{ hashFiles('conanfile.py') }}
key: ${{ runner.os }}-${{ matrix.compiler.preset }}-${{ matrix.buildtype }}-${{ hashFiles('conanfile.py') }}

- name: Install conan
shell: bash
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
${{ env.CONAN_USER_HOME }}
~/.cache/pip
~/.ccache
key: ${{ runner.os }}-${{ matrix.buildtype }}-${{ hashFiles('conanfile.py') }}
key: ${{ runner.os }}-${{ matrix.compiler.preset }}-${{ matrix.buildtype }}-${{ hashFiles('conanfile.py') }}

- name: Install conan
shell: bash
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
${{ env.CONAN_USER_HOME }}
~/.cache/pip
~/.ccache
key: ${{ runner.os }}-${{ matrix.buildtype }}-${{ hashFiles('conanfile.py') }}
key: ${{ runner.os }}-${{ matrix.compiler.preset }}-${{ matrix.buildtype }}-${{ hashFiles('conanfile.py') }}

- name: Install conan
shell: bash
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
${{ env.CONAN_USER_HOME }}
~/.cache/pip
~/.ccache
key: ${{ runner.os }}-${{ matrix.buildtype }}-${{ hashFiles('cmake/Conan.cmake') }}
key: ${{ runner.os }}-${{ matrix.compiler.preset }}-${{ matrix.buildtype }}-${{ hashFiles('conanfile.py') }}

- name: Install conan
shell: bash
Expand Down Expand Up @@ -265,7 +265,7 @@ jobs:
${{ env.CONAN_USER_HOME }}
~/.cache/pip
~/.ccache
key: ${{ runner.os }}-${{ matrix.buildtype }}-${{ hashFiles('cmake/Conan.cmake') }}
key: ${{ runner.os }}-${{ matrix.compiler.preset }}-${{ matrix.buildtype }}-${{ hashFiles('conanfile.py') }}

- name: Install conan
shell: bash
Expand Down Expand Up @@ -296,18 +296,12 @@ jobs:
matrix:
os: [ubuntu-22.04]
buildtype: [debug]
compiler: [ {name: 'Clang 15', preset: clang-15, pkgs: 'clang-15 llvm-15'} ]
compiler: [ {name: 'Clang 15', preset: clang-15-qt, pkgs: 'clang-15 llvm-15'} ]
cxx: [20]

steps:
- uses: actions/checkout@v4

- name: Install conan
shell: bash
run: |
python3 -m pip install --upgrade pip setuptools conan
source ~/.profile
- name: Cache
uses: actions/cache@v4
env:
Expand All @@ -317,7 +311,13 @@ jobs:
${{ env.CONAN_USER_HOME }}
~/.cache/pip
~/.ccache
key: ${{ runner.os }}-${{ matrix.buildtype }}-${{ hashFiles('cmake/Conan.cmake') }}
key: ${{ runner.os }}-${{ matrix.compiler.preset }}-${{ matrix.buildtype }}-${{ hashFiles('conanfile.py') }}

- name: Install conan
shell: bash
run: |
python3 -m pip install --upgrade pip setuptools conan
source ~/.profile
- name: Install dependencies
run: |
Expand All @@ -335,12 +335,12 @@ jobs:

- name: Configure via CMake
shell: bash
run: cmake --preset ${{ matrix.compiler.preset }}-qt -DCXX_STANDARD=${{ matrix.cxx }}
run: cmake --preset ${{ matrix.compiler.preset }} -DCXX_STANDARD=${{ matrix.cxx }}

- name: Build
shell: bash
run: cmake --build --preset build-${{ matrix.compiler.preset }}-qt
run: cmake --build --preset build-${{ matrix.compiler.preset }}

- name: Test
shell: bash
run: ctest --preset test-${{ matrix.compiler.preset }}-qt
run: ctest --preset test-${{ matrix.compiler.preset }}

0 comments on commit ba8de98

Please sign in to comment.