From f0da129f0462abab4af4397ef633924294850178 Mon Sep 17 00:00:00 2001 From: vuonghoainam Date: Sun, 15 Oct 2023 12:09:09 -0700 Subject: [PATCH] fix(ci): Update packaging step for config.json file --- .github/workflows/build.yml | 35 +++++++---------------------------- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 31dc9614e..8118180d4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,8 +70,7 @@ jobs: - name: Package shell: bash run: | - mkdir -p nitro && mkdir -p nitro/config - cp config.json nitro/config/ + mkdir -p nitro cp build/nitro nitro/ zip -r nitro.zip nitro @@ -116,8 +115,7 @@ jobs: - name: Package shell: bash run: | - mkdir -p nitro && mkdir -p nitro/config - cp config.json nitro/config/ + mkdir -p nitro cp build/nitro nitro/ zip -r nitro.zip nitro @@ -163,9 +161,8 @@ jobs: - name: Package shell: bash run: | - mkdir -p nitro && mkdir -p nitro/config - cp config.json nitro/config/ - cp llama.cpp/ggml-metal.h nitro/ + mkdir -p nitro + cp llama.cpp/ggml-metal.metal nitro/ cp build/nitro nitro/ zip -r nitro.zip nitro @@ -210,8 +207,7 @@ jobs: - name: Package shell: bash run: | - mkdir -p nitro && mkdir -p nitro/config - cp config.json nitro/config/ + mkdir -p nitro cp build/nitro nitro/ zip -r nitro.zip nitro @@ -269,7 +265,7 @@ jobs: run: | cmake -S ./nitro_deps -B ./build_deps/nitro_deps cmake --build ./build_deps/nitro_deps --config Release - mkdir build + mkdir -p build cd build cmake .. cmake --build . --config Release -j 4 @@ -280,8 +276,6 @@ jobs: $dst='.\build\Release' robocopy build_deps\_install\bin\zlib.dll $dst robocopy build\bin\Release\llama.dll $dst - mkdir -p .\build\Release\config - robocopy config.json .\build\Release\config 7z a nitro.zip .\build\Release\* - uses: actions/upload-release-asset@v1.0.1 @@ -327,7 +321,7 @@ jobs: run: | cmake -S ./nitro_deps -B ./build_deps/nitro_deps cmake --build ./build_deps/nitro_deps --config Release - mkdir build + mkdir -p build cd build cmake .. -DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_CUBLAS=ON -DBUILD_SHARED_LIBS=ON cmake --build . --config Release -j 4 @@ -341,8 +335,6 @@ jobs: $dst='.\build\Release' robocopy build_deps\_install\bin\zlib.dll $dst robocopy build\bin\Release\llama.dll $dst - mkdir -p .\build\Release\config - robocopy config.json .\build\Release\config 7z a nitro.zip .\build\Release\* - uses: actions/upload-release-asset@v1.0.1 @@ -358,23 +350,10 @@ jobs: update_release_draft: needs: [ubuntu-amd64-build, ubuntu-amd64-cuda-build, macOS-M-build, macOS-Intel-build, windows-amd64-build, windows-amd64-cuda-build] permissions: - # write permission is required to create a github release contents: write - # write permission is required for autolabeler - # otherwise, read permission is required at least pull-requests: write runs-on: ubuntu-latest steps: - # (Optional) GitHub Enterprise requires GHE_HOST variable set - #- name: Set GHE_HOST - # run: | - # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV - - # Drafts your next Release notes as Pull Requests are merged into "master" - uses: release-drafter/release-drafter@v5 - # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml - # with: - # config-name: my-config.yml - # disable-autolabeler: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}