Skip to content

Commit 52869ec

Browse files
committed
Merge with setup-curl
1 parent c98c297 commit 52869ec

File tree

1 file changed

+100
-3
lines changed

1 file changed

+100
-3
lines changed

action.yml

Lines changed: 100 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,38 @@ runs:
1515
path: .php-src
1616
ref: ${{ inputs.branch }}
1717

18-
- name: Setup Curl
19-
uses: PHPWatch/setup-curl@main
18+
- name: Show existing env
19+
shell: bash
20+
run: |
21+
curl --version
22+
23+
- name: Checkout curl repo
24+
uses: actions/checkout@v4
25+
with:
26+
repository: curl/curl
27+
path: .curl
28+
fetch-depth: 0
29+
30+
- name: Checkout latest release tag
31+
shell: bash
32+
run: |
33+
cd .curl
34+
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
35+
git checkout $LATEST_TAG
36+
cd ../
2037
2138
- name: Install dependencies
2239
shell: bash
2340
run: |
2441
set -x
2542
2643
export DEBIAN_FRONTEND=noninteractive
27-
44+
sudo sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
2845
sudo apt update -y | true
46+
sudo apt build-dep libcurl4-openssl-dev curl -y
47+
sudo apt build-dep libcurl4-openssl-dev curl -y
2948
sudo apt install -y \
49+
libgsasl-dev \
3050
autoconf \
3151
gcc \
3252
make \
@@ -79,6 +99,83 @@ runs:
7999
libfreetype6-dev
80100
cd ..
81101
102+
- name: Configure build
103+
shell: bash
104+
run: |
105+
set -x
106+
cd .curl
107+
autoreconf -fi
108+
./configure --disable-symbol-hiding --enable-versioned-symbols \
109+
--enable-threaded-resolver --with-lber-lib=lber \
110+
--enable-websockets \
111+
--with-gssapi=/usr --with-nghttp2 \
112+
--includedir=/usr/include/$(DEB_HOST_MULTIARCH) \
113+
--with-zsh-functions-dir=/usr/share/zsh/vendor-completions \
114+
--with-fish-functions-dir=/usr/share/fish/vendor_completions.d \
115+
--with-ca-path=/etc/ssl/certs \
116+
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
117+
--without-libssh --with-libssh2 \
118+
--with-openssl \
119+
--enable-http \
120+
--enable-ftp \
121+
--enable-file \
122+
--enable-ipfs \
123+
--enable-ldap \
124+
--enable-ldaps \
125+
--enable-rtsp \
126+
--enable-proxy \
127+
--enable-dict \
128+
--enable-telnet \
129+
--enable-tftp \
130+
--enable-pop3 \
131+
--enable-imap \
132+
--enable-smb \
133+
--enable-smtp \
134+
--enable-gopher \
135+
--enable-mqtt \
136+
--enable-manual \
137+
--enable-docs \
138+
--enable-ipv6 \
139+
--enable-pthreads \
140+
--enable-verbose \
141+
--enable-sspi \
142+
--enable-basic-auth \
143+
--enable-bearer-auth \
144+
--enable-digest-auth \
145+
--enable-kerberos-auth \
146+
--enable-negotiate-auth \
147+
--enable-aws \
148+
--enable-ntlm \
149+
--enable-tls-srp \
150+
--enable-unix-sockets \
151+
--enable-cookies \
152+
--enable-socketpair \
153+
--enable-sspi \
154+
--enable-http-auth
155+
156+
cd ../
157+
158+
- name: Compile
159+
shell: bash
160+
run: |
161+
cd ./.curl
162+
make -j$(/usr/bin/nproc) >/dev/null
163+
cd ../
164+
165+
- name: Install
166+
shell: bash
167+
run: |
168+
set -x
169+
cd ./.curl
170+
sudo make install
171+
sudo ldconfig
172+
cd ../
173+
174+
- name: Show version info
175+
shell: bash
176+
run: |
177+
curl --version
178+
82179
- name: Configure build
83180
shell: bash
84181
run: |

0 commit comments

Comments
 (0)