7070 - name : Package
7171 shell : bash
7272 run : |
73- mkdir -p nitro && mkdir -p nitro/config
74- cp config.json nitro/config/
73+ mkdir -p nitro
7574 cp build/nitro nitro/
7675 zip -r nitro.zip nitro
7776
@@ -116,8 +115,7 @@ jobs:
116115 - name : Package
117116 shell : bash
118117 run : |
119- mkdir -p nitro && mkdir -p nitro/config
120- cp config.json nitro/config/
118+ mkdir -p nitro
121119 cp build/nitro nitro/
122120 zip -r nitro.zip nitro
123121
@@ -163,9 +161,8 @@ jobs:
163161 - name : Package
164162 shell : bash
165163 run : |
166- mkdir -p nitro && mkdir -p nitro/config
167- cp config.json nitro/config/
168- cp llama.cpp/ggml-metal.h nitro/
164+ mkdir -p nitro
165+ cp llama.cpp/ggml-metal.metal nitro/
169166 cp build/nitro nitro/
170167 zip -r nitro.zip nitro
171168
@@ -210,8 +207,7 @@ jobs:
210207 - name : Package
211208 shell : bash
212209 run : |
213- mkdir -p nitro && mkdir -p nitro/config
214- cp config.json nitro/config/
210+ mkdir -p nitro
215211 cp build/nitro nitro/
216212 zip -r nitro.zip nitro
217213
@@ -269,7 +265,7 @@ jobs:
269265 run : |
270266 cmake -S ./nitro_deps -B ./build_deps/nitro_deps
271267 cmake --build ./build_deps/nitro_deps --config Release
272- mkdir build
268+ mkdir -p build
273269 cd build
274270 cmake ..
275271 cmake --build . --config Release -j 4
@@ -280,8 +276,6 @@ jobs:
280276 $dst='.\build\Release'
281277 robocopy build_deps\_install\bin\zlib.dll $dst
282278 robocopy build\bin\Release\llama.dll $dst
283- mkdir -p .\build\Release\config
284- robocopy config.json .\build\Release\config
285279 7z a nitro.zip .\build\Release\*
286280
287281 - uses : actions/upload-release-asset@v1.0.1
@@ -327,7 +321,7 @@ jobs:
327321 run : |
328322 cmake -S ./nitro_deps -B ./build_deps/nitro_deps
329323 cmake --build ./build_deps/nitro_deps --config Release
330- mkdir build
324+ mkdir -p build
331325 cd build
332326 cmake .. -DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_CUBLAS=ON -DBUILD_SHARED_LIBS=ON
333327 cmake --build . --config Release -j 4
@@ -341,8 +335,6 @@ jobs:
341335 $dst='.\build\Release'
342336 robocopy build_deps\_install\bin\zlib.dll $dst
343337 robocopy build\bin\Release\llama.dll $dst
344- mkdir -p .\build\Release\config
345- robocopy config.json .\build\Release\config
346338 7z a nitro.zip .\build\Release\*
347339
348340 - uses : actions/upload-release-asset@v1.0.1
@@ -358,23 +350,10 @@ jobs:
358350 update_release_draft :
359351 needs : [ubuntu-amd64-build, ubuntu-amd64-cuda-build, macOS-M-build, macOS-Intel-build, windows-amd64-build, windows-amd64-cuda-build]
360352 permissions :
361- # write permission is required to create a github release
362353 contents : write
363- # write permission is required for autolabeler
364- # otherwise, read permission is required at least
365354 pull-requests : write
366355 runs-on : ubuntu-latest
367356 steps :
368- # (Optional) GitHub Enterprise requires GHE_HOST variable set
369- # - name: Set GHE_HOST
370- # run: |
371- # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
372-
373- # Drafts your next Release notes as Pull Requests are merged into "master"
374357 - uses : release-drafter/release-drafter@v5
375- # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
376- # with:
377- # config-name: my-config.yml
378- # disable-autolabeler: true
379358 env :
380359 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments