Skip to content

Commit fe3fbf5

Browse files
committed
CI workflow install curl via packet manager
1 parent 8ab24ac commit fe3fbf5

1 file changed

Lines changed: 11 additions & 29 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
name: Continuous Integration
55
on: [ "pull_request", "workflow_dispatch" ]
6-
env:
7-
CURL_RELEASE: 'curl-8_7_1'
86
jobs:
97

108
# don't split build and test jobs to keep the workflow simple
@@ -13,25 +11,19 @@ jobs:
1311
runs-on: ubuntu-latest
1412
steps:
1513
- uses: actions/checkout@v4
16-
- uses: actions/checkout@v4
17-
with:
18-
repository: 'curl/curl'
19-
ref: ${{ env.CURL_RELEASE }}
20-
path: 'curl'
21-
- name: Build curl
22-
run: cd curl && ../.github/build.sh
2314
- uses: actions/setup-java@v4
2415
with:
2516
distribution: 'zulu'
2617
java-version: '11'
18+
- name: Install curl
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y libcurl4-openssl-dev
2722
- name: Build libraries
2823
# cmake should figure out OS and ARCH automatically when running build.sh (but we need mvn compile for it)
2924
run: |
3025
mvn compile
31-
.github/build.sh \
32-
-DLLAMA_CURL=ON \
33-
-DCURL_LIBRARY=curl/build/lib/libcurl.so \
34-
-DCURL_INCLUDE_DIR=curl/include
26+
.github/build.sh -DLLAMA_CURL=ON
3527
- name: Run tests
3628
run: mvn test
3729

@@ -56,28 +48,18 @@ jobs:
5648
runs-on: windows-latest
5749
steps:
5850
- uses: actions/checkout@v4
59-
- uses: actions/checkout@v4
60-
with:
61-
repository: 'curl/curl'
62-
ref: ${{ env.CURL_RELEASE }}
63-
path: 'curl'
64-
- name: Build curl
65-
run: cd curl && ..\.github\build.bat
6651
- uses: actions/setup-java@v4
6752
with:
6853
distribution: 'zulu'
6954
java-version: '11'
55+
- name: Install curl
56+
run: |
57+
git clone https://github.com/Microsoft/vcpkg.git
58+
.\vcpkg\bootstrap-vcpkg.bat
59+
.\vcpkg\vcpkg install curl
7060
- name: Build libraries
7161
run: |
72-
dir
73-
dir curl
74-
dir curl\build
75-
dir curl\build\lib
76-
dir curl\build\lib\Release
7762
mvn compile
78-
.github\build.bat `
79-
-DLLAMA_CURL=ON `
80-
-DCURL_LIBRARY=${{ github.workspace }}\curl\build\lib\Release\libcurl_imp.lib `
81-
-DCURL_INCLUDE_DIR=curl\include
63+
.github\build.bat -DLLAMA_CURL=ON
8264
- name: Run tests
8365
run: mvn test

0 commit comments

Comments
 (0)