File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
actions/windows-setup-curl Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 55 description : ' CURL version'
66 required : false
77 default : ' 8.6.0_6'
8+ architecture :
9+ description : ' Architecture of the libcurl to download'
10+ required : false
11+ default : ' win64'
812outputs :
913 curl_path :
1014 description : " Path to the downloaded libcurl"
1822 shell : powershell
1923 env :
2024 CURL_VERSION : ${{ inputs.curl_version }}
25+ ARCHITECTURE : ${{ inputs.architecture }}
2126 run : |
22- curl.exe -o $env:RUNNER_TEMP/curl.zip -L "https://curl.se/windows/dl-${env:CURL_VERSION}/curl-${env:CURL_VERSION}-win64 -mingw.zip"
27+ curl.exe -o $env:RUNNER_TEMP/curl.zip -L "https://curl.se/windows/dl-${env:CURL_VERSION}/curl-${env:CURL_VERSION}-${env:ARCHITECTURE} -mingw.zip"
2328 mkdir $env:RUNNER_TEMP/libcurl
2429 tar.exe -xvf $env:RUNNER_TEMP/curl.zip --strip-components=1 -C $env:RUNNER_TEMP/libcurl
2530 echo "curl_path=$env:RUNNER_TEMP/libcurl" >> $env:GITHUB_OUTPUT
Original file line number Diff line number Diff line change @@ -238,14 +238,19 @@ jobs:
238238 matrix :
239239 include :
240240 - build : ' cpu-x64'
241+ arch : ' x64'
241242 defines : ' -G "Ninja Multi-Config" -D CMAKE_TOOLCHAIN_FILE=cmake/x64-windows-llvm.cmake -DGGML_NATIVE=OFF -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON -DGGML_OPENMP=OFF'
242243 # - build: 'openblas-x64'
244+ # arch: 'x64'
243245 # defines: '-G "Ninja Multi-Config" -D CMAKE_TOOLCHAIN_FILE=cmake/x64-windows-llvm.cmake -DGGML_NATIVE=OFF -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON -DGGML_OPENMP=OFF -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS -DBLAS_INCLUDE_DIRS="$env:RUNNER_TEMP/openblas/include" -DBLAS_LIBRARIES="$env:RUNNER_TEMP/openblas/lib/openblas.lib"'
244246 - build : ' vulkan-x64'
247+ arch : ' x64'
245248 defines : ' -DGGML_NATIVE=OFF -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON -DGGML_VULKAN=ON'
246249 - build : ' cpu-arm64'
250+ arch : ' arm64'
247251 defines : ' -G "Ninja Multi-Config" -D CMAKE_TOOLCHAIN_FILE=cmake/arm64-windows-llvm.cmake -DGGML_NATIVE=OFF'
248252 - build : ' opencl-adreno-arm64'
253+ arch : ' arm64'
249254 defines : ' -G "Ninja Multi-Config" -D CMAKE_TOOLCHAIN_FILE=cmake/arm64-windows-llvm.cmake -DCMAKE_PREFIX_PATH="$env:RUNNER_TEMP/opencl-arm64-release" -DGGML_OPENCL=ON -DGGML_OPENCL_USE_ADRENO_KERNELS=ON'
250255
251256 steps :
@@ -312,6 +317,8 @@ jobs:
312317 - name : libCURL
313318 id : get_libcurl
314319 uses : ./.github/actions/windows-setup-curl
320+ with :
321+ architecture : ${{ matrix.arch == 'x64' && 'win64' || 'win64a' }}
315322
316323 - name : Build
317324 id : cmake_build
@@ -339,7 +346,7 @@ jobs:
339346 env :
340347 CURL_PATH : ${{ steps.get_libcurl.outputs.curl_path }}
341348 run : |
342- Copy-Item $env:CURL_PATH\bin\libcurl-x64. dll .\build\bin\Release\libcurl-x64.dll
349+ Copy-Item $env:CURL_PATH\bin\libcurl-${{ matrix.arch }}. dll .\build\bin\Release\
343350 7z a llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}.zip .\build\bin\Release\*
344351
345352 - name : Upload artifacts
You can’t perform that action at this time.
0 commit comments