Skip to content

Commit

Permalink
fix CI: use correct ccache directory
Browse files Browse the repository at this point in the history
------------------------
Note: by creating a PR or an issue you automatically agree to the CLA. See [CONTRIBUTING.md](https://github.com/userver-framework/userver/blob/develop/CONTRIBUTING.md). Feel free to remove this note, the agreement holds.

Tests: протестировано CI

Pull Request resolved: #754
commit_hash:c69ce40519660d83a8a8e6e586a867d9253e4123
  • Loading branch information
fdr400 committed Nov 11, 2024
1 parent 4e4744c commit d6efd48
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
os: ubuntu-24.04
info: clang-18 + debug + sanitize addr+ub
tests-flags: ''
ccache-dir: ~/.cache/ccache
- cmake-flags: >-
-DCMAKE_CXX_COMPILER=clang++-14
Expand All @@ -49,6 +50,7 @@ jobs:
os: ubuntu-22.04
info: clang-14 + debug + sanitize addr+ub
tests-flags: ''
ccache-dir: ~/.cache/ccache
- cmake-flags: >-
-DUSERVER_FEATURE_CRYPTOPP_BLAKE2=0
Expand All @@ -60,6 +62,7 @@ jobs:
os: ubuntu-20.04
info: g++-9 + release
tests-flags: '--gtest_filter=-HttpClient.RedirectHeaders:HttpClient.TestUseIPv4v6'
ccache-dir: ~/.ccache
# GCC-8 - testing minimal required compiler
- cmake-flags: >-
Expand All @@ -74,6 +77,7 @@ jobs:
os: ubuntu-20.04
info: g++-8 + debug
tests-flags: '--gtest_filter=-HttpClient.RedirectHeaders:HttpClient.TestUseIPv4v6'
ccache-dir: ~/.ccache
name: '${{matrix.os}}: ${{matrix.info}}'
runs-on: ${{matrix.os}}
Expand All @@ -86,7 +90,7 @@ jobs:
- name: Reuse ccache directory
uses: actions/cache@v4
with:
path: ~/.ccache
path: '${{matrix.ccache-dir}}'
key: '${{matrix.os}} ${{matrix.info}} ccache-dir ${{github.ref}} run-${{github.run_number}}'
restore-keys: |
${{matrix.os}} ${{matrix.info}} ccache-dir ${{github.ref}} run-'
Expand Down Expand Up @@ -192,7 +196,7 @@ jobs:
- name: Install g++-8
if: matrix.info == 'g++-8 + debug'
run: |
sudo apt install --allow-downgrades -y g++-8
sudo apt install --allow-downgrades -y g++-8
- name: Install RabbitMQ packages
run: |
Expand Down

0 comments on commit d6efd48

Please sign in to comment.