Skip to content

Commit

Permalink
Update build.yml - cache VTK build
Browse files Browse the repository at this point in the history
  • Loading branch information
pyushkevich authored Sep 29, 2024
1 parent 2b4f2c1 commit 1211c89
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,17 @@ jobs:
target: 'desktop'
arch: 'gcc_64'

# Use cached VTK build if available
- name: Cache VTK
id: cache-vtk
uses: actions/cache@v4
with:
path: prime-numbers
key: ${{ runner.os }}-vtk-9.3.1

# Check out VTK
- name: Checkout VTK
if: steps.cache-vtk.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: 'Kitware/VTK.git'
Expand All @@ -56,6 +65,7 @@ jobs:

# Build VTK
- name: Build VTK
if: steps.cache-vtk.outputs.cache-hit != 'true'
uses: threeal/cmake-action@v2.0.0
with:
source-dir: ${{github.workspace}}/vtk
Expand Down

0 comments on commit 1211c89

Please # to comment.