Skip to content

Commit

Permalink
Merge pull request #426 from csinrn/ichen/ccache-pr
Browse files Browse the repository at this point in the history
Use ccache to save CI build time
  • Loading branch information
yungyuc authored Sep 11, 2024
2 parents 146d984 + b1c2429 commit b5352e5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/devbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ jobs:
echo "flake8 path: $(which flake8)"
echo "flake8 version: $(flake8 --version)"
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ runner.os }}-standalone-buffer-${{ matrix.cmake_build_type }}
restore-keys: ${{ runner.os }}-standalone-buffer-${{ matrix.cmake_build_type }}
create-symlink: true

- name: make standalone_buffer
run: |
make standalone_buffer_setup
Expand Down Expand Up @@ -176,6 +183,13 @@ jobs:
echo "flake8 path: $(which flake8)"
echo "flake8 version: $(flake8 --version)"
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ runner.os }}-${{ matrix.cmake_build_type }}
restore-keys: ${{ runner.os }}-${{ matrix.cmake_build_type }}
create-symlink: true

- name: make gtest BUILD_QT=OFF
run: |
make gtest \
Expand Down Expand Up @@ -352,6 +366,13 @@ jobs:
echo "flake8 path: $(which flake8)"
echo "flake8 version: $(flake8 --version)"
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ runner.os }}-${{ matrix.cmake_build_type }}
restore-keys: ${{ runner.os }}-${{ matrix.cmake_build_type }}
create-symlink: true

- name: make gtest BUILD_QT=OFF
run: |
make gtest \
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ jobs:
echo "flake8 path: $(which flake8)"
echo "flake8 version: $(flake8 --version)"
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ runner.os }}-tidy-${{ matrix.cmake_build_type }}
restore-keys: ${{ runner.os }}-tidy-${{ matrix.cmake_build_type }}
create-symlink: true

- name: make cinclude (check_include)
run: make cinclude

Expand Down Expand Up @@ -264,6 +271,13 @@ jobs:
echo "flake8 path: $(which flake8)"
echo "flake8 version: $(flake8 --version)"
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ runner.os }}-tidy-${{ matrix.cmake_build_type }}
restore-keys: ${{ runner.os }}-tidy-${{ matrix.cmake_build_type }}
create-symlink: true

- name: make cinclude (check_include)
run: make cinclude

Expand Down

0 comments on commit b5352e5

Please sign in to comment.