Skip to content

Commit

Permalink
CUDA Test 8
Browse files Browse the repository at this point in the history
  • Loading branch information
onurulgen committed Feb 2, 2024
1 parent deaf0f9 commit b09a7a6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
asset_name: ${{ steps.vars.outputs.output-folder }}.zip
2 changes: 1 addition & 1 deletion niftyreg_build_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
402
403

0 comments on commit b09a7a6

Please sign in to comment.