ci: tests: windows tests add libcurl
This commit is contained in:
parent
838178a196
commit
176f039a91
1 changed files with 6 additions and 6 deletions
12
.github/workflows/server.yml
vendored
12
.github/workflows/server.yml
vendored
|
@ -105,28 +105,28 @@ jobs:
|
||||||
- name: Download libCURL
|
- name: Download libCURL
|
||||||
id: get_libcurl
|
id: get_libcurl
|
||||||
env:
|
env:
|
||||||
|
CURL_TAG: 8_6_0
|
||||||
CURL_VERSION: 8.6.0
|
CURL_VERSION: 8.6.0
|
||||||
run: |
|
run: |
|
||||||
curl.exe -o $env:RUNNER_TEMP/libcurl.tar.gz -L "https://github.com/curl/curl/releases/download/v${env:CURL_VERSION}/curl-v${env:CURL_VERSION}.tar.gz"
|
curl.exe -o $env:RUNNER_TEMP/libcurl.tar.gz -L "https://github.com/curl/curl/releases/download/curl-${env:CURL_TAG}/curl-${env:CURL_VERSION}.tar.gz"
|
||||||
mkdir $env:RUNNER_TEMP/libcurl
|
mkdir $env:RUNNER_TEMP/libcurl
|
||||||
tar.exe -xvf $env:RUNNER_TEMP/libcurl.tar.gz --strip-components=1 -C $env:RUNNER_TEMP/libcurl
|
tar.exe -xvf $env:RUNNER_TEMP/libcurl.tar.gz --strip-components=1 -C $env:RUNNER_TEMP/libcurl
|
||||||
|
|
||||||
- name: Install libcurl
|
- name: Build libcurl
|
||||||
id: install_libcurl
|
id: build_libcurl
|
||||||
run: |
|
run: |
|
||||||
cd $env:RUNNER_TEMP/libcurl
|
cd $env:RUNNER_TEMP/libcurl
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Release ;
|
cmake .. -DCMAKE_BUILD_TYPE=Release
|
||||||
cmake --build . --config Release
|
cmake --build . --config Release
|
||||||
make install
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
id: cmake_build
|
id: cmake_build
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DLLAMA_BUILD_SERVER=ON -DCMAKE_BUILD_TYPE=Release ;
|
cmake .. -DCURL_LIBRARY="${env:RUNNER_TEMP}/libcurl/lib/Release/libcurl_imp.lib" -DCURL_INCLUDE_DIR="${env:RUNNER_TEMP}/libcurl/include" -DLLAMA_BUILD_SERVER=ON -DCMAKE_BUILD_TYPE=Release
|
||||||
cmake --build . --config Release -j ${env:NUMBER_OF_PROCESSORS} --target server
|
cmake --build . --config Release -j ${env:NUMBER_OF_PROCESSORS} --target server
|
||||||
|
|
||||||
- name: Python setup
|
- name: Python setup
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue