Skip to content

Commit

Permalink
.github/workflows/windows-release.yml: create tensorrt-only release
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium committed Jul 4, 2024
1 parent 0d90e6a commit 5b40144
Showing 1 changed file with 34 additions and 6 deletions.
40 changes: 34 additions & 6 deletions .github/workflows/windows-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
retention-days: 1

- name: Release scripts
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.tag }}
files: scripts.${{ github.event.inputs.tag }}.7z
Expand Down Expand Up @@ -226,7 +226,7 @@ jobs:
mv contrib-models.7z contrib-models.${{ github.event.inputs.tag }}.7z
- name: Release models
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.tag }}
files: |
Expand Down Expand Up @@ -313,7 +313,7 @@ jobs:
run: mv vsmlrt-windows-x64-cpu.7z vsmlrt-windows-x64-cpu.${{ github.event.inputs.tag }}.7z

- name: Release CPU
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.tag }}
files: vsmlrt-windows-x64-cpu.${{ github.event.inputs.tag}}.7z
Expand Down Expand Up @@ -348,7 +348,7 @@ jobs:
run: mv vsmlrt-windows-x64-generic-gpu.7z vsmlrt-windows-x64-generic-gpu.${{ github.event.inputs.tag }}.7z

- name: Release generic GPU
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.tag }}
files: vsmlrt-windows-x64-generic-gpu.${{ github.event.inputs.tag }}.7z
Expand Down Expand Up @@ -386,18 +386,46 @@ jobs:
retention-days: 1
compression-level: 0

- name: Rename release asset
- name: Rename release asset for CUDA release
run: mv vsmlrt-windows-x64-cuda.7z vsmlrt-windows-x64-cuda.${{ github.event.inputs.tag }}.7z

- name: Release CUDA
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.tag }}
files: vsmlrt-windows-x64-cuda.${{ github.event.inputs.tag }}.7z
fail_on_unmatched_files: true
generate_release_notes: false
prerelease: true

- name: Build TensorRT-only release
shell: bash
run: |
cd release-cuda
rm --verbose cublas*.dll cudnn*.dll cufft*.dll cupti*.dll nvblas*.dll
7za a -t7z -bb3 -mx=9 ../vsmlrt-windows-x64-tensorrt.7z .
- name: Upload TensorRT-only release
uses: actions/upload-artifact@v4
if: false
with:
name: vsmlrt-tensorrt-release
path: vsmlrt-windows-x64-tensorrt.7z
retention-days: 1
compression-level: 0

- name: Rename release asset for TensorRT-only release
run: mv vsmlrt-windows-x64-tensorrt.7z vsmlrt-windows-x64-tensorrt.${{ github.event.inputs.tag }}.7z

- name: Release TensorRT-only
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.tag }}
files: vsmlrt-windows-x64-tensorrt.${{ github.event.inputs.tag }}.7z
fail_on_unmatched_files: true
generate_release_notes: false
prerelease: true

# Update nightly tag.
- name: Checkout repo
if: github.event.inputs.tag == 'nightly'
Expand Down

0 comments on commit 5b40144

Please sign in to comment.