-
Notifications
You must be signed in to change notification settings - Fork 6
103 lines (91 loc) · 3.08 KB
/
curl.yml
File metadata and controls
103 lines (91 loc) · 3.08 KB
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
name: curl Test
# START OF COMMON SECTION
on:
push:
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# END OF COMMON SECTION
jobs:
build_gnutls:
name: Build wolfSSL, GnuTLS and provider
timeout-minutes: 20
strategy:
matrix:
os: [ ubuntu-latest ]
curl_ref: [ 'master', 'curl-7_88_1', 'curl-8_4_0' ]
fail-fast: false
runs-on: ${{ matrix.os }}
container:
image: debian:bookworm
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Ensure make available (Ubuntu only)
if: matrix.os == 'ubuntu-latest'
run: |
apt-get update
apt-get install -y build-essential
- name: Install GnuTLS dependencies (Ubuntu only)
if: matrix.os == 'ubuntu-latest'
run: |
apt-get update
apt-get install -y gnulib autopoint gperf gtk-doc-tools nettle-dev clang libtasn1-bin libtasn1-6-dev libunistring-dev libp11-kit-dev libunbound-dev sudo wget git
- name: Install curl test dependencies
run: |
sudo apt-get update
sudo apt-get install -y nghttp2 libpsl5 libpsl-dev python3-impacket
- name: Restore cached gnutls-wolfssl
id: cache-gnutls
uses: actions/cache@v4
with:
path: |
/opt/gnutls
/opt/wolfssl
/opt/wolfssl-gnutls-wrapper
key: gnutls-wolfssl-${{ runner.os }}-${{ hashFiles('setup.sh', 'wolfssl-gnutls-wrapper/**', 'wolfssl/**', 'gnutls/**') }}
restore-keys: |
gnutls-wolfssl-${{ runner.os }}-
- name: Build GnuTLS with wolfSSL provider using setup.sh script
if: steps.cache-gnutls.outputs.cache-hit != 'true'
run: |
echo "Running setup.sh..."
BUILD_RESULT=0
GNUTLS_INSTALL=/opt/gnutls WOLFSSL_INSTALL=/opt/wolfssl ./setup.sh
if [ $? -ne 0 ]; then
echo "Build failed"
exit 1
fi
- name: Check setup.sh output directories
run: |
echo "Check for wolfSSL installation..."
if [ ! -d /opt/wolfssl ]; then
echo "/opt/wolfssl not found after setup"
exit 1
fi
echo "Check for GnuTLS installation..."
if [ ! -d /opt/gnutls ]; then
echo "/opt/gnutls not found after setup"
exit 1
fi
echo "Check for wrapper installation..."
if [ ! -d /opt/wolfssl-gnutls-wrapper/lib ]; then
echo "/opt/wolfssl-gnutls-wrapper/lib not found after setup"
exit 1
fi
- name: Build curl from ${{ matrix.curl_ref }}
uses: wolfSSL/actions-build-autotools-project@v1
with:
repository: curl/curl
path: curl
ref: ${{ matrix.curl_ref }}
configure: --with-gnutls=/opt/gnutls
check: false
- name: Test curl
working-directory: curl
run: |
export USER=root
make -j $(nproc) test-ci