Skip to content

Commit c5fdeae

Browse files
committed
cache compiled ME for tests
1 parent 73dc0ca commit c5fdeae

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,27 @@ jobs:
2727
sudo apt-get update
2828
sudo apt-get install -y libopenblas-dev g++ cmake ninja-build
2929
30+
- name: Cache MinkowskiEngine
31+
id: cache-minkowski
32+
uses: actions/cache@v4
33+
with:
34+
path: |
35+
${{ env.pythonLocation }}/lib/python*/site-packages/MinkowskiEngine*
36+
${{ env.pythonLocation }}/lib/python*/site-packages/minkowski*
37+
key: ${{ runner.os }}-minkowski-${{ matrix.python-version }}-02fc608-cpu-only
38+
3039
- name: Install dependencies
3140
run: |
3241
python -m pip install --upgrade pip
3342
pip install -e ".[tests,spconv]"
3443
3544
- name: Build and install MinkowskiEngine
45+
if: steps.cache-minkowski.outputs.cache-hit != 'true'
3646
run: |
3747
git clone https://github.com/NVIDIA/MinkowskiEngine.git
38-
3948
cd MinkowskiEngine
40-
python setup.py install --blas=openblas --cpu_only
49+
git checkout 02fc608
50+
python setup.py install --blas=openblas --cpu_only
4151
4252
- name: Run tests with TorchScript enabled
4353
run: |

0 commit comments

Comments
 (0)