Skip to content

Commit 5fac593

Browse files
author
sangjanai
committed
fix: quality gate
1 parent 370735f commit 5fac593

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.github/workflows/quality-gate.yml

+10-14
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,9 @@ jobs:
355355
run: |
356356
make build-lib CMAKE_EXTRA_FLAGS="${{ matrix.cmake-flags }}"
357357
358-
- name: Pre Package
359-
run: |
360-
make pre-package
361-
362358
- uses: 1arp/[email protected]
363359
with:
364-
path: "llama-cpp"
360+
path: "build/bin"
365361
isAbsolutePath: false
366362
file: "version.txt"
367363
content: |
@@ -380,31 +376,31 @@ jobs:
380376
- name: Upload Artifact
381377
uses: actions/upload-artifact@v4
382378
with:
383-
name: llama-cpp-${{ matrix.os }}-${{ matrix.name }}
384-
path: ./llama-cpp
379+
name: llama-${{ matrix.os }}-${{ matrix.name }}
380+
path: ./build/bin
385381

386382
- name: Calculate SHA512 Checksum (macOS)
387383
if: runner.os == 'macOS'
388384
run: |
389-
sha512sum ./llama-cpp.tar.gz | awk '{ print $1 }' > sha512.txt
390-
size=$(stat -f%z ./llama-cpp.tar.gz) # Sử dụng -f%z cho macOS
385+
sha512sum ./llama.tar.gz | awk '{ print $1 }' > sha512.txt
386+
size=$(stat -f%z ./llama.tar.gz) # Sử dụng -f%z cho macOS
391387
echo "checksum=$(cat sha512.txt)" >> $GITHUB_ENV
392388
echo "size=$size" >> $GITHUB_ENV
393389
394390
- name: Calculate SHA512 Checksum (Windows)
395391
if: runner.os == 'Windows'
396392
shell: pwsh
397393
run: |
398-
CertUtil -hashfile ./llama-cpp.tar.gz SHA512 | Select-String -Pattern "^[0-9a-fA-F]+$" | Out-File sha512.txt
399-
$size = (Get-Item ./llama-cpp.tar.gz).length
394+
CertUtil -hashfile ./llama.tar.gz SHA512 | Select-String -Pattern "^[0-9a-fA-F]+$" | Out-File sha512.txt
395+
$size = (Get-Item ./llama.tar.gz).length
400396
echo "checksum=$(Get-Content sha512.txt)" >> $env:GITHUB_ENV
401397
echo "size=$size" >> $env:GITHUB_ENV
402398
403399
- name: Calculate SHA512 Checksum (Linux)
404400
if: runner.os == 'Linux'
405401
run: |
406-
sha512sum ./llama-cpp.tar.gz | awk '{ print $1 }' > sha512.txt
407-
size=$(stat -c%s ./llama-cpp.tar.gz)
402+
sha512sum ./llama.tar.gz | awk '{ print $1 }' > sha512.txt
403+
size=$(stat -c%s ./llama.tar.gz)
408404
echo "checksum=$(cat sha512.txt)" >> $GITHUB_ENV
409405
echo "size=$size" >> $GITHUB_ENV
410406
@@ -470,7 +466,7 @@ jobs:
470466
.sha512 as $sha512 |
471467
.size as $size |
472468
(.sha512 | keys[]) as $key |
473-
"- url: llama-cpp-\($version)-\($key).tar.gz\n sha512: >-\n \($sha512[$key])\n size: \($size[$key])"
469+
"- url: llama-\($version)-\($key).tar.gz\n sha512: >-\n \($sha512[$key])\n size: \($size[$key])"
474470
' >> checksum.yml
475471
476472
cat checksum.yml

0 commit comments

Comments
 (0)