Skip to content

Commit

Permalink
Merge pull request #4 from slivingston/ci-cache
Browse files Browse the repository at this point in the history
Cache Spot build files for CI jobs
  • Loading branch information
jgraeb authored Oct 2, 2024
2 parents d4b4e3d + d6a9496 commit 6c7be55
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 48 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/conda.yaml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,19 @@ jobs:
- name: Install Python dependencies
run: |
pdm install
- name: Try to use cached Spot
id: cache-spot
uses: actions/cache@v4
with:
path: spot-2.12
key: ${{ runner.os }}-${{ matrix.python-version }}-spot-${{ hashFiles('get_spot.py') }}
- name: Install Spot
if: steps.cache-spot.outputs.cache-hit == 'true'
run: |
cd spot-2.12
make install
- name: Build and install Spot
if: steps.cache-spot.outputs.cache-hit != 'true'
run: |
pdm run python get_spot.py
- name: Run tests
Expand Down

0 comments on commit 6c7be55

Please sign in to comment.