-
Notifications
You must be signed in to change notification settings - Fork 9
68 lines (55 loc) · 1.78 KB
/
openssl_linux.yml
File metadata and controls
68 lines (55 loc) · 1.78 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
name: Linux OpenSSL
on:
workflow_dispatch:
workflow_call:
jobs:
build-linux:
runs-on: ubuntu-22.04
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
steps:
- name: Checkout
uses: actions/checkout@v4
# ===============================
# Restore OpenSSL cache
# ===============================
- name: Restore OpenSSL cache
id: openssl-cache
uses: actions/cache@v4
with:
path: openssl-install
key: openssl-${{ runner.os }}-1.1.1w
# ===============================
# Install build dependencies
# ===============================
- name: Install build dependencies
if: steps.openssl-cache.outputs.cache-hit != 'true'
run: |
sudo apt-get update
sudo apt-get install -y build-essential perl wget
# ===============================
# Build OpenSSL 1.1.1w
# ===============================
- name: Build OpenSSL 1.1.1w
if: steps.openssl-cache.outputs.cache-hit != 'true'
run: |
git clone https://github.com/openssl/openssl.git
cd openssl
git fetch --all
git checkout tags/OpenSSL_1_1_1w
./Configure linux-x86_64 \
--prefix=${{ github.workspace }}/openssl-install \
--openssldir=${{ github.workspace }}/openssl-install
make -j$(nproc)
make install_sw
cd ..
rm -rf openssl
echo "✅ OpenSSL 1.1.1w built successfully"
# ===============================
# Upload artifact
# ===============================
- name: Upload OpenSSL artifact
uses: actions/upload-artifact@v4
with:
name: openssl-${{ runner.os }}-1.1.1w
path: openssl-install