-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
116 lines (106 loc) · 3.36 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: Compile and install Curl from source
description: Compile and install Curl from source
runs:
using: composite
steps:
- name: Show existing env
shell: bash
run: |
curl --version
- name: Checkout curl repo
uses: actions/checkout@v4
with:
repository: curl/curl
path: .curl
fetch-depth: 0
- name: Checkout latest release tag
shell: bash
run: |
cd .curl
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $LATEST_TAG
cd ../
- name: Install dependencies
shell: bash
run: |
set -x
sudo sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
sudo apt update
sudo apt build-dep libcurl4-openssl-dev curl -y
sudo apt install libgsasl-dev -y
- name: Configure build
shell: bash
run: |
set -x
cd .curl
autoreconf -fi
./configure --disable-symbol-hiding --enable-versioned-symbols \
--enable-threaded-resolver --with-lber-lib=lber \
--enable-websockets \
--with-gssapi=/usr --with-nghttp2 \
--includedir=/usr/include/$(DEB_HOST_MULTIARCH) \
--with-zsh-functions-dir=/usr/share/zsh/vendor-completions \
--with-fish-functions-dir=/usr/share/fish/vendor_completions.d \
--with-ca-path=/etc/ssl/certs \
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
--without-libssh --with-libssh2 \
--with-openssl \
--enable-http \
--enable-ftp \
--enable-file \
--enable-ipfs \
--enable-ldap \
--enable-ldaps \
--enable-rtsp \
--enable-proxy \
--enable-dict \
--enable-telnet \
--enable-tftp \
--enable-pop3 \
--enable-imap \
--enable-smb \
--enable-smtp \
--enable-gopher \
--enable-mqtt \
--enable-manual \
--enable-docs \
--enable-ipv6 \
--enable-pthreads \
--enable-verbose \
--enable-sspi \
--enable-basic-auth \
--enable-bearer-auth \
--enable-digest-auth \
--enable-kerberos-auth \
--enable-negotiate-auth \
--enable-aws \
--enable-ntlm \
--enable-tls-srp \
--enable-unix-sockets \
--enable-cookies \
--enable-socketpair \
--enable-sspi \
--enable-http-auth
cd ../
- name: Compile
shell: bash
run: |
cd ./.curl
make -j$(/usr/bin/nproc) >/dev/null
cd ../
- name: Install
shell: bash
run: |
set -x
cd ./.curl
sudo make install
sudo ldconfig
cd ../
- name: Show version info
shell: bash
run: |
curl --version
- name: Cleanup
shell: bash
run: |
rm .curl -Rf