Skip to content

Commit

Permalink
Use simple caching of build folder in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Aug 18, 2024
1 parent ac49f5d commit f3658b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ jobs:
run: python -m pip install -U pip
- name: Install Python requirements
run: python -m pip install -r .github/workflows/requirements.txt

- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
- name: Cache build folder
uses: actions/cache@v4
with:
key: ${{ secrets.CCACHE_UID }}
path: build
key: ${{ runner.os }}
- name: Build Cython extensions in debug mode
run: python -m pip install -v . -C cmake.build-type=Debug -C cmake.define.CMAKE_C_COMPILER_LAUNCHER=ccache -C cmake.define.CMAKE_CXX_COMPILER_LAUNCHER=ccache
run: python -m pip install -v . -C cmake.build-type=Debug
- name: Test with coverage
run: python -m coverage run -m unittest discover -vv
- name: Upload to Codecov
Expand Down

0 comments on commit f3658b8

Please # to comment.