diff --git a/.github/workflows/windows-release.yml b/.github/workflows/windows-release.yml index 24965a9..d295d9f 100644 --- a/.github/workflows/windows-release.yml +++ b/.github/workflows/windows-release.yml @@ -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 @@ -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: | @@ -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 @@ -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 @@ -386,11 +386,11 @@ 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 @@ -398,6 +398,34 @@ jobs: 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'