Skip to content

Commit 584d056

Browse files
committed
Actions: Upload to releases
Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
1 parent d64247c commit 584d056

File tree

1 file changed

+47
-13
lines changed

1 file changed

+47
-13
lines changed

.github/workflows/build.yml

+47-13
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,33 @@ jobs:
9797
run: |
9898
mkdir ${{ steps.folder-name.outputs.name }}
9999
mv lib models templates config_sample.yml YALS ${{ steps.folder-name.outputs.name }}
100-
- name: Upload artifact
101-
uses: actions/upload-artifact@v4
102-
with:
103-
name: ${{ steps.folder-name.outputs.name }}
104-
path: ./${{ steps.folder-name.outputs.name }}
105-
if-no-files-found: error
100+
# - name: Upload artifact
101+
# uses: actions/upload-artifact@v4
102+
# with:
103+
# name: ${{ steps.folder-name.outputs.name }}
104+
# path: ./${{ steps.folder-name.outputs.name }}
105+
# if-no-files-found: error
106106
- name: Zip files
107107
run: |
108108
cd ${{ steps.folder-name.outputs.name }}
109109
zip -r ${{ steps.folder-name.outputs.name }}.zip YALS lib/* models/* templates/* config_sample.yml
110+
mv ${{ steps.folder-name.outputs.name }}.zip ../
111+
- name: Upload release
112+
uses: svenstaro/upload-release-action@v2
113+
with:
114+
file: ${{ steps.folder-name.outputs.name }}.zip
115+
tag: ${{ steps.sha.outputs.sha }}
116+
overwrite: true
117+
release_name: YALS-${{ steps.sha.outputs.sha }}
118+
body: |
119+
CI Builds of YALS commit [${{ steps.sha.outputs.sha }}](https://github.com/${{ github.repository }}/commit/${{ steps.sha.outputs.sha }})
120+
121+
For more details, please refer to the commit history.
122+
123+
Builds:
124+
- **CPU**: Compiled with AVX1 and AVX2 support.
125+
- **CUDA** - Built for CUDA 12, optimized for Turing and newer consumer GPUs.
126+
- **Metal** - Includes both Metal and CPU support for macOS.
110127
111128
windows-build:
112129
runs-on: ${{ matrix.os }}
@@ -205,13 +222,30 @@ jobs:
205222
run: |
206223
mkdir ${{ steps.folder-name.outputs.name }}
207224
mv YALS.exe,lib,models,templates,config_sample.yml ${{ steps.folder-name.outputs.name }}
208-
- name: Upload artifact
209-
uses: actions/upload-artifact@v4
210-
with:
211-
name: ${{ steps.folder-name.outputs.name }}
212-
path: ./${{ steps.folder-name.outputs.name }}
213-
if-no-files-found: error
225+
# - name: Upload artifact
226+
# uses: actions/upload-artifact@v4
227+
# with:
228+
# name: ${{ steps.folder-name.outputs.name }}
229+
# path: ./${{ steps.folder-name.outputs.name }}
230+
# if-no-files-found: error
214231
- name: Zip files
215232
run: |
216233
cd ${{ steps.folder-name.outputs.name }}
217-
Compress-Archive -Path @('.\YALS.exe', '.\lib', '.\models', '.\templates', '.\config_sample.yml') -DestinationPath ${{ steps.folder-name.outputs.filename }}.zip
234+
Compress-Archive -Path @('.\YALS.exe', '.\lib', '.\models', '.\templates', '.\config_sample.yml') -DestinationPath ${{ steps.folder-name.outputs.name }}.zip
235+
mv ${{ steps.folder-name.outputs.name }}.zip ../
236+
- name: Upload release
237+
uses: svenstaro/upload-release-action@v2
238+
with:
239+
file: ${{ steps.folder-name.outputs.name }}.zip
240+
tag: ${{ steps.sha.outputs.sha }}
241+
overwrite: true
242+
release_name: YALS-${{ steps.sha.outputs.sha }}
243+
body: |
244+
CI Builds of YALS commit [${{ steps.sha.outputs.sha }}](https://github.com/${{ github.repository }}/commit/${{ steps.sha.outputs.sha }})
245+
246+
For more details, please refer to the commit history.
247+
248+
Builds:
249+
- **CPU**: Compiled with AVX1 and AVX2 support.
250+
- **CUDA** - Built for CUDA 12, optimized for Turing and newer consumer GPUs.
251+
- **Metal** - Includes both Metal and CPU support for macOS.

0 commit comments

Comments
 (0)