Skip to content

Commit

Permalink
Use sccache in GitHub Actions to persist compilation units across b…
Browse files Browse the repository at this point in the history
…uilds
  • Loading branch information
althonos committed Aug 17, 2024
1 parent b9fcc5f commit 51bd9f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage ~=7.0
cython ~=3.0
scikit-build-core
sccache
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ 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: Build Cython extensions in debug mode
run: python -m pip install -vv . -C cmake.build-type=Debug
run: python -m pip install -vv . -C cmake.build-type=Debug -C cmake.define.CMAKE_C_COMPILER_LAUNCHER=sccache -C CMAKE_CXX_COMPILER_LAUNCHER=sccache
- name: Test with coverage
run: python -m coverage run -m unittest discover -vv
- name: Upload to Codecov
Expand Down

0 comments on commit 51bd9f2

Please # to comment.