Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pyushkevich authored Oct 3, 2024
1 parent 6b8240d commit 3c8a711
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04,macos-13,macos-14,windows-2022]
itk_ver: [ '5.4.0' ]
vtk_ver: [ '9.3.1' ]
qt_ver: [ '6.6.3' ]
include:
- os: ubuntu-20.04
qt_host: linux
Expand Down Expand Up @@ -77,7 +80,7 @@ jobs:
- name: Install Qt on Ubuntu
uses: jurplel/install-qt-action@v4
with:
version: '6.6.3'
version: ${{ matrix.qt_ver }}
target: 'desktop'
host: ${{ matrix.qt_host }}
arch: ${{ matrix.qt_arch }}
Expand All @@ -89,15 +92,15 @@ jobs:
uses: actions/cache/restore@v4
with:
path: ${{github.workspace}}/vtk/install
key: ${{ matrix.os }}-vtk-9.3.1
key: ${{ matrix.os }}-vtk-${{ matrix.vtk_ver }}

# Check out VTK
- name: Checkout VTK
if: steps.cache-vtk.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: 'Kitware/VTK.git'
ref: 'v9.3.1'
ref: v${{ matrix.vtk_ver }}
submodules: true
path: 'vtk'

Expand Down Expand Up @@ -128,7 +131,7 @@ jobs:
uses: actions/cache/save@v4
with:
path: ${{github.workspace}}/vtk/install
key: ${{ matrix.os }}-vtk-9.3.1
key: ${{ matrix.os }}-vtk-${{ matrix.vtk_ver }}

# Use cached ITK build if available. Unfortunately ITK make install fails to
# install one file, vnl_vector_ref.hxx so instead of caching the install dir
Expand All @@ -138,15 +141,15 @@ jobs:
uses: actions/cache/restore@v4
with:
path: ${{github.workspace}}/itk
key: ${{ matrix.os }}-itk-5.4.0-build
key: ${{ matrix.os }}-itk-${{ matrix.itk_ver }}-build

# Check out ITK
- name: Checkout ITK
if: steps.cache-itk.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: 'InsightSoftwareConsortium/ITK.git'
ref: 'v5.4.0'
ref: v${{ matrix.itk_ver }}
submodules: true
path: 'itk'

Expand All @@ -173,7 +176,7 @@ jobs:
uses: actions/cache/save@v4
with:
path: ${{github.workspace}}/itk
key: ${{ matrix.os }}-itk-5.4.0-build
key: ${{ matrix.os }}-itk-${{ matrix.itk_ver }}-build

# Restore ITK-SNAP cache if requested by the user. This should allow us to create faster builds
# because only the updated files should require rebuilding
Expand Down

0 comments on commit 3c8a711

Please sign in to comment.