Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 32bab7e

Browse files
committed
fix(ci): Update release action
1 parent 7be7a47 commit 32bab7e

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ jobs:
4646
CC=gcc-8 make -j $(nproc)
4747
ls -la
4848
49+
- name: Upload binaries to release
50+
uses: svenstaro/upload-release-action@v2
51+
with:
52+
repo_token: ${{ secrets.GITHUB_TOKEN }}
53+
file: build/nitro
54+
asset_name: nitro-linux-amd64
55+
tag: ${{ github.ref }}
56+
4957
ubuntu-amd64-cuda-build:
5058
runs-on: linux-gpu
5159
permissions:
@@ -70,7 +78,15 @@ jobs:
7078
mkdir build && cd build
7179
cmake -DLLAMA_CUBLAS=ON ..
7280
CC=gcc-8 make -j $(nproc)
73-
ls -la
81+
ls -la
82+
83+
- name: Upload binaries to release
84+
uses: svenstaro/upload-release-action@v2
85+
with:
86+
repo_token: ${{ secrets.GITHUB_TOKEN }}
87+
file: build/nitro
88+
asset_name: nitro-linux-amd64-cuda
89+
tag: ${{ github.ref }}
7490

7591
macOS-M-build:
7692
runs-on: mac-silicon
@@ -98,6 +114,14 @@ jobs:
98114
CC=gcc-8 make -j $(nproc)
99115
ls -la
100116
117+
- name: Upload binaries to release
118+
uses: svenstaro/upload-release-action@v2
119+
with:
120+
repo_token: ${{ secrets.GITHUB_TOKEN }}
121+
file: build/nitro
122+
asset_name: nitro-mac-arm64-metal
123+
tag: ${{ github.ref }}
124+
101125
macOS-Intel-build:
102126
runs-on: macos-latest
103127
permissions:
@@ -122,4 +146,12 @@ jobs:
122146
mkdir build && cd build
123147
cmake -DLLAMA_METAL=OFF ..
124148
CC=gcc-8 make -j $(nproc)
125-
ls -la
149+
ls -la
150+
151+
- name: Upload binaries to release
152+
uses: svenstaro/upload-release-action@v2
153+
with:
154+
repo_token: ${{ secrets.GITHUB_TOKEN }}
155+
file: build/nitro
156+
asset_name: nitro-mac-amd64
157+
tag: ${{ github.ref }}

0 commit comments

Comments
 (0)