diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 12abd03..a308c74 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -160,12 +160,11 @@ jobs: - name: Build id: cmake_build + uses: ilammy/msvc-dev-cmd@v1 run: | mkdir build cd build - ls "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" - cmd - ${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && cmake .. -GNinja -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DLLAMA_NATIVE=OFF -DLLAMA_VULKAN=OFF -DCMAKE_BUILD_TYPE=Release' }} + cmake .. -GNinja -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DLLAMA_NATIVE=OFF -DLLAMA_VULKAN=OFF -DCMAKE_BUILD_TYPE=Release ninja -j ${env:NUMBER_OF_PROCESSORS} - name: Archive library