From a17e89bdf8cb9953876c06750ca6e50889ee5ecc Mon Sep 17 00:00:00 2001 From: Adriankhl Date: Tue, 28 May 2024 14:09:44 +0800 Subject: [PATCH] build: add windows cpu release build github action --- .github/workflows/build.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe2e62c..d4963d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -150,8 +150,22 @@ jobs: run: | git submodule update --init --recursive - - name: Install scoop + - name: Scoop dependencies shell: powershell run: | irm get.scoop.sh | iex - scoop install ninja \ No newline at end of file + scoop install ninja llvm + + - name: Build + id: cmake_build + run: | + mkdir build + cd build + cmake .. -GNinja -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DLLAMA_NATIVE=OFF -DLLAMA_VULKAN=OFF -DCMAKE_BUILD_TYPE=Release + ninja -j $(nproc) + + - name: Archive library + uses: actions/upload-artifact@v4 + with: + name: windows_cpu_release.zip + path: build/libgodot_llm.windows.release.amd64.dll \ No newline at end of file