Skip to content

Commit

Permalink
Use separaet cache keys for each workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAce committed Jun 2, 2023
1 parent 3a4d52f commit ab67985
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
~/.ccache
~/.conan2
install/github-actions-${{ matrix.manager }}
key: ${{ runner.os }}-${{ env.cache-name }}
key: ${{ github.workflow }}-${{ env.cache-name }}

- name: Setup build tools
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
~/.ccache
~/.conan2
install/github-actions-${{ matrix.manager }}
key: ${{ runner.os }}-${{ env.cache-name }}
key: ${{ github.workflow }}-${{ env.cache-name }}

- name: Setup build tools
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ubuntu20.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: 'pip'

- name: Update apt
run: |
Expand All @@ -45,7 +44,7 @@ jobs:
~/.ccache
~/.conan2
install/github-actions-${{ matrix.manager }}
key: ${{ runner.os }}-${{ env.cache-name }}
key: ${{ github.workflow }}-${{ env.cache-name }}

- name: Setup gcc
if: matrix.compiler == 'gcc'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu22.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
~/.ccache
~/.conan2
install/github-actions-${{ matrix.manager }}
key: ${{ runner.os }}-${{ env.cache-name }}
key: ${{ github.workflow }}-${{ env.cache-name }}

- name: Setup gcc
if: matrix.compiler == 'gcc'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/windows2019.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: lukka/get-cmake@latest
- name: Setup Python
uses: actions/setup-python@v4
if: contains(matrix.manager, 'conan')
if: matrix.manager == 'conan'
with:
python-version: '3.x'

Expand All @@ -36,7 +36,7 @@ jobs:
path: |
~/.conan2
install/github-actions-${{ matrix.manager }}
key: ${{ runner.os }}-${{ env.cache-name }}
key: ${{ github.workflow }}-${{ env.cache-name }}

- name: Setup conan
if: matrix.manager == 'conan'
Expand All @@ -51,4 +51,4 @@ jobs:
configurePresetAdditionalArgs: "['-DH5PP_ENABLE_ASAN=FALSE']"
buildPreset: 'github-actions-${{ matrix.manager }}'
testPreset: 'github-actions-${{ matrix.manager }}'
testPresetAdditionalArgs: "['--config Debug']"
testPresetAdditionalArgs: "['--build-config=Debug']"
4 changes: 2 additions & 2 deletions .github/workflows/windows2022.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
path: |
~/.conan2
install/github-actions-${{ matrix.manager }}
key: ${{ runner.os }}-${{ env.cache-name }}
key: ${{ github.workflow }}-${{ env.cache-name }}

- name: Setup conan
if: matrix.manager == 'conan'
Expand All @@ -51,4 +51,4 @@ jobs:
configurePresetAdditionalArgs: "['-DH5PP_ENABLE_ASAN=FALSE']"
buildPreset: 'github-actions-${{ matrix.manager }}'
testPreset: 'github-actions-${{ matrix.manager }}'
testPresetAdditionalArgs: "['--config Debug']"
testPresetAdditionalArgs: "['--build-config=Debug']"

0 comments on commit ab67985

Please sign in to comment.