From b09a7a651dbd4b3d6a5b3736571c3c4c9e0ba26e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Onur=20=C3=9Clgen?= Date: Fri, 2 Feb 2024 19:13:54 +0000 Subject: [PATCH] CUDA Test 8 --- .github/workflows/release.yml | 24 +++++++++++++++--------- niftyreg_build_version.txt | 2 +- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b8e36425..e79f02b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,33 +72,39 @@ jobs: shell: bash run: cmake --build build --config ${{ matrix.build_type }} + - name: Prepare the variables + id: vars + shell: bash + run: echo "output-folder=NiftyReg-${{ matrix.os-name }}${{ matrix.platform-name }}-${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + - name: Prepare the package if: matrix.os-name == 'Windows' shell: powershell working-directory: build/reg-apps/Release run: | - Compress-Archive -Path *.exe -DestinationPath ../../NiftyReg.zip + New-Item -ItemType Directory -Force -Path ${{ steps.vars.outputs.output-folder }} + Move-Item -Path *.exe -Destination ${{ steps.vars.outputs.output-folder }} + Compress-Archive -Path ${{ steps.vars.outputs.output-folder }} -DestinationPath ../../NiftyReg.zip - name: Prepare the package if: matrix.os-name == 'Ubuntu' working-directory: build/reg-apps run: | - find . -maxdepth 1 -type f -executable -exec zip ../NiftyReg.zip {} \; + mkdir -p ${{ steps.vars.outputs.output-folder }} + find . -maxdepth 1 -type f -executable -exec cp {} ${{ steps.vars.outputs.output-folder }} \; + zip -r ../NiftyReg.zip ${{ steps.vars.outputs.output-folder }} - name: Prepare the package if: matrix.os-name == 'macOS' working-directory: build/reg-apps run: | - find . -maxdepth 1 -type f -perm +111 -exec zip ../NiftyReg.zip {} \; - - - name: Get the tag name - id: tag - shell: bash - run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + mkdir -p ${{ steps.vars.outputs.output-folder }} + find . -maxdepth 1 -type f -perm +111 -exec cp {} ${{ steps.vars.outputs.output-folder }} \; + zip -r ../NiftyReg.zip ${{ steps.vars.outputs.output-folder }} - name: Upload the package uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ github.token }} file: build/NiftyReg.zip - asset_name: NiftyReg-${{ matrix.os-name }}${{ matrix.platform-name }}-${{ steps.tag.outputs.tag }}.zip \ No newline at end of file + asset_name: ${{ steps.vars.outputs.output-folder }}.zip \ No newline at end of file diff --git a/niftyreg_build_version.txt b/niftyreg_build_version.txt index 52f22458..e1a29c1f 100644 --- a/niftyreg_build_version.txt +++ b/niftyreg_build_version.txt @@ -1 +1 @@ -402 +403