@@ -15,18 +15,38 @@ runs:
15
15
path : .php-src
16
16
ref : ${{ inputs.branch }}
17
17
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 ../
20
37
21
38
- name : Install dependencies
22
39
shell : bash
23
40
run : |
24
41
set -x
25
42
26
43
export DEBIAN_FRONTEND=noninteractive
27
-
44
+ sudo sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
28
45
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
29
48
sudo apt install -y \
49
+ libgsasl-dev \
30
50
autoconf \
31
51
gcc \
32
52
make \
79
99
libfreetype6-dev
80
100
cd ..
81
101
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
+
82
179
- name : Configure build
83
180
shell : bash
84
181
run : |
0 commit comments