diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index c5dde2ac8..c40e8da70 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -3,7 +3,7 @@ name: Build, test, publish on: [push,pull_request] env: - itk-git-tag: "v6.0a02" + itk-git-tag: "main" jobs: build-test-cxx: @@ -57,6 +57,14 @@ jobs: cd ITK git checkout ${{ env.itk-git-tag }} + - name: Restore ExternalData cache + uses: actions/cache@v4 + with: + path: ${{ github.workspace }}/../bld/ExternalData/Objects + key: externaldata-v1-${{ hashFiles('Ex/src/**/*.cid') }} + restore-keys: | + externaldata-v1- + - name: Build ITK if: matrix.os != 'windows-2022' run: | @@ -169,6 +177,14 @@ jobs: - name: Get specific version of CMake, Ninja uses: lukka/get-cmake@v3.24.2 + - name: Restore ExternalData cache + uses: actions/cache@v4 + with: + path: ${{ github.workspace }}/../bld/ExternalData/Objects + key: externaldata-superbuild-v1-${{ matrix.os }}-${{ hashFiles('Ex/src/**/*.cid') }} + restore-keys: | + externaldata-superbuild-v1-${{ matrix.os }}- + - name: Fetch CTest driver script run: | curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKSphinxExamples/dashboard/itkexamples_common.cmake -O @@ -308,6 +324,14 @@ jobs: SITE_PACKAGES_DIR=$(python3 "-c" "from distutils import sysconfig; print(sysconfig.get_python_lib())") sed -i "6559d" ${SITE_PACKAGES_DIR}/sphinx/domains/cpp.py + - name: Restore ExternalData cache + uses: actions/cache@v4 + with: + path: ${{ github.workspace }}/../bld/ExternalData/Objects + key: externaldata-docs-v1-${{ hashFiles('Ex/src/**/*.cid') }} + restore-keys: | + externaldata-docs-v1- + - name: Fetch CTest driver script run: | curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKSphinxExamples/dashboard/itkexamples_common.cmake -O diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4c2d54586..ee5e0c67d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: fetch-depth: 0 - name: Lint C++ - uses: InsightSoftwareConsortium/ITKClangFormatLinterAction@master + uses: InsightSoftwareConsortium/ITKClangFormatLinterAction@main - name: Set up Python uses: actions/setup-python@v5