From d0a9b18fee22b5a43ebb7fe539abf33a00f3b006 Mon Sep 17 00:00:00 2001 From: Paul Yushkevich Date: Tue, 8 Oct 2024 00:16:22 -0400 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d18f704..a83087ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -240,12 +240,27 @@ jobs: uses: mxschmitt/action-tmate@v3 if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} + # Add libcurl.dll to PATH on windows + - name: Append directory with libcurl.dll to PATH + if: runner.os == 'Windows' + run: | + echo ${{github.workspace}}/vcpkg/installed/x64-windows-release/bin >> $GITHUB_PATH + # Package ITK-SNAP - name: Package ITK-SNAP + id: package_itksnap continue-on-error: true working-directory: ${{github.workspace}}/itksnap/build run: | ninja -v package + PACKAGE_FILE=$(jq -r '.filename' ${{github.workspace}}/itksnap/build/package_info.json) + echo "::set-output name=package_file::$PACKAGE_FILE" + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: ${{steps.package_itksnap.outputs.package_file}} + path: ${{github.workspace}}/itksnap/build/${{steps.package_itksnap.outputs.package_file}}