File tree 3 files changed +41
-8
lines changed
3 files changed +41
-8
lines changed Original file line number Diff line number Diff line change
1
+ name : ' Windows - Setup CURL'
2
+ description : ' Composite action, to be reused in other workflow'
3
+ inputs :
4
+ curl_version :
5
+ description : ' CURL version'
6
+ required : false
7
+ default : ' 8.6.0_6'
8
+ outputs :
9
+ curl_path :
10
+ description : " Path to the downloaded libcurl"
11
+ value : ${{ steps.get_libcurl.outputs.curl_path }}
12
+ curl_cmake_arg :
13
+ description : " Arguments to be added to cmake command which allow finding libcurl"
14
+ value : ${{ steps.get_libcurl.outputs.curl_cmake_arg }}
15
+
16
+ runs :
17
+ using : " composite"
18
+ steps :
19
+ - name : libCURL
20
+ id : get_libcurl
21
+ env :
22
+ CURL_VERSION : 8.6.0_6
23
+ run : |
24
+ curl.exe -o $env:RUNNER_TEMP/curl.zip -L "https://curl.se/windows/dl-${env:CURL_VERSION}/curl-${env:CURL_VERSION}-win64-mingw.zip"
25
+ mkdir $env:RUNNER_TEMP/libcurl
26
+ tar.exe -xvf $env:RUNNER_TEMP/curl.zip --strip-components=1 -C $env:RUNNER_TEMP/libcurl
27
+ echo "curl_path=$env:RUNNER_TEMP/libcurl" >> $env:GITHUB_OUTPUT
28
+ echo "curl_cmake_arg=' -DCURL_LIBRARY=\`"$env:RUNNER_TEMP/libcurl/lib/libcurl.dll.a\`" -DCURL_INCLUDE_DIR=\`"$env:RUNNER_TEMP/libcurl/include\`" '" >> $env:GITHUB_OUTPUT
Original file line number Diff line number Diff line change 23
23
libcurl4-openssl-dev
24
24
25
25
- name : Build
26
+ # TODO: fix build with LLAMA_CURL=ON
26
27
run : |
27
28
cmake -B build -DCMAKE_BUILD_TYPE=Release \
28
29
-DGGML_OPENMP=OFF \
30
+ -DLLAMA_CURL=OFF \
29
31
-DLLAMA_BUILD_EXAMPLES=ON \
30
32
-DLLAMA_BUILD_TESTS=OFF \
31
33
-DCMAKE_SYSTEM_NAME=Linux \
@@ -64,10 +66,12 @@ jobs:
64
66
libcurl4-openssl-dev
65
67
66
68
- name : Build
69
+ # TODO: fix build with LLAMA_CURL=ON
67
70
run : |
68
71
cmake -B build -DCMAKE_BUILD_TYPE=Release \
69
72
-DGGML_VULKAN=ON \
70
73
-DGGML_OPENMP=OFF \
74
+ -DLLAMA_CURL=OFF \
71
75
-DLLAMA_BUILD_EXAMPLES=ON \
72
76
-DLLAMA_BUILD_TESTS=OFF \
73
77
-DCMAKE_SYSTEM_NAME=Linux \
@@ -105,10 +109,12 @@ jobs:
105
109
libcurl4-openssl-dev
106
110
107
111
- name : Build
112
+ # TODO: fix build with LLAMA_CURL=ON
108
113
run : |
109
114
cmake -B build -DCMAKE_BUILD_TYPE=Release \
110
115
-DGGML_VULKAN=ON \
111
116
-DGGML_OPENMP=OFF \
117
+ -DLLAMA_CURL=OFF \
112
118
-DLLAMA_BUILD_EXAMPLES=ON \
113
119
-DLLAMA_BUILD_TESTS=OFF \
114
120
-DCMAKE_SYSTEM_NAME=Linux \
Original file line number Diff line number Diff line change @@ -192,17 +192,14 @@ jobs:
192
192
193
193
- name : libCURL
194
194
id : get_libcurl
195
- env :
196
- CURL_VERSION : 8.6.0_6
197
- run : |
198
- curl.exe -o $env:RUNNER_TEMP/curl.zip -L "https://curl.se/windows/dl-${env:CURL_VERSION}/curl-${env:CURL_VERSION}-win64-mingw.zip"
199
- mkdir $env:RUNNER_TEMP/libcurl
200
- tar.exe -xvf $env:RUNNER_TEMP/curl.zip --strip-components=1 -C $env:RUNNER_TEMP/libcurl
195
+ uses : ./.github/actions/windows-setup-curl.yml
201
196
202
197
- name : Build
203
198
id : cmake_build
199
+ env :
200
+ CURL_CMAKE_ARG : ${{ steps.get_libcurl.outputs.curl_cmake_arg }}
204
201
run : |
205
- cmake -B build -DCURL_LIBRARY=" $env:RUNNER_TEMP/libcurl/lib/libcurl.dll.a" -DCURL_INCLUDE_DIR="$env:RUNNER_TEMP/libcurl/include"
202
+ cmake -B build $env:CURL_CMAKE_ARG
206
203
cmake --build build --config Release -j ${env:NUMBER_OF_PROCESSORS} --target llama-server
207
204
208
205
- name : Python setup
@@ -218,8 +215,10 @@ jobs:
218
215
219
216
- name : Copy Libcurl
220
217
id : prepare_libcurl
218
+ env :
219
+ CURL_PATH : ${{ steps.get_libcurl.outputs.curl_path }}
221
220
run : |
222
- cp $env:RUNNER_TEMP/libcurl /bin/libcurl-x64.dll ./build/bin/Release/libcurl-x64.dll
221
+ cp $env:CURL_PATH /bin/libcurl-x64.dll ./build/bin/Release/libcurl-x64.dll
223
222
224
223
- name : Tests
225
224
id : server_integration_tests
You can’t perform that action at this time.
0 commit comments