Skip to content

Commit

Permalink
[feat] add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Haldir65 committed Jul 5, 2024
1 parent 4a0e551 commit b679338
Showing 1 changed file with 31 additions and 9 deletions.
40 changes: 31 additions & 9 deletions .github/workflows/automate_build_of_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,23 @@ jobs:
token: ${{ secrets.ACCESS_TOKEN }}
ref: 'master'
path: ronan
- name: Checkout
uses: actions/checkout@v4
- name: Cache Boost artifact
id: cache-boost
uses: actions/cache@v4
with:
path: ronan/cmake/vendor/boost-1.85.0-cmake.tar.xz
key: ${{ runner.os }}-boost-1.85.0

- name: Retrieve boost cache
if: steps.cache-boost.outputs.cache-hit != 'true'
run: echo "boost cache is not found locally"

- name: Cache Cmake packages
uses: .github/actions/cache-build-dir
- name: Cache build cache
id: cache-deps
uses: actions/cache@v4
with:
key: ${{ runner.os }}-cmake-${{ hashFiles('**/*.cmake*', '**/CMakeLists.txt') }}
path: ronan/cmake/build/deps_
key: ${{ runner.os }}-build_deps-v1

- name: Install LLVM and Clang on linux
if: startsWith(matrix.target.id, 'linux-')
Expand Down Expand Up @@ -184,12 +194,24 @@ jobs:
ref: 'master'
path: ronan

- name: Cache Cmake packages
uses: ronan/.github/actions/cache-build-dir
- name: Cache Boost artifact
id: cache-boost
uses: actions/cache@v4
with:
key: ${{ runner.os }}-cmake-${{ hashFiles('**/*.cmake*', '**/CMakeLists.txt') }}

path: ronan/cmake/vendor/boost-1.85.0-cmake.tar.xz
key: ${{ runner.os }}-boost-1.85.0

- name: Retrieve boost cache
if: steps.cache-boost.outputs.cache-hit != 'true'
run: echo "boost cache is not found locally"

- name: Cache build cache
id: cache-deps
uses: actions/cache@v4
with:
path: ronan/cmake/build/deps_
key: ${{ runner.os }}-build_deps-v1

- name: install dependency on debian
shell: bash
run: |
Expand Down

0 comments on commit b679338

Please sign in to comment.