Skip to content

Commit 8334922

Browse files
Add workflow openssl
1 parent a3b74b8 commit 8334922

2 files changed

Lines changed: 66 additions & 1 deletion

File tree

.github/workflows/cuda_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ jobs:
6060
if: steps.cuda-cache.outputs.cache-hit != 'true'
6161
uses: actions/upload-artifact@v4
6262
with:
63-
name: cuda-13.1.0
63+
name: cuda-${{ runner.os }}-13.1.0
6464
path: cuda-install
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Linux OpenSSL
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build-linux:
8+
runs-on: ubuntu-22.04
9+
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
# ===============================
15+
# Restore OpenSSL cache
16+
# ===============================
17+
- name: Restore OpenSSL cache
18+
id: openssl-cache
19+
uses: actions/cache@v4
20+
with:
21+
path: openssl-install
22+
key: openssl-${{ runner.os }}-1.1.1w
23+
24+
# ===============================
25+
# Install build dependencies
26+
# ===============================
27+
- name: Install build dependencies
28+
if: steps.openssl-cache.outputs.cache-hit != 'true'
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y build-essential perl wget
32+
33+
# ===============================
34+
# Build OpenSSL 1.1.1w
35+
# ===============================
36+
- name: Build OpenSSL 1.1.1w
37+
if: steps.openssl-cache.outputs.cache-hit != 'true'
38+
run: |
39+
git clone https://github.com/openssl/openssl.git
40+
cd openssl
41+
42+
git fetch --all
43+
git checkout tags/OpenSSL_1_1_1w
44+
45+
./Configure linux-x86_64 \
46+
--prefix=${{ github.workspace }}/openssl-install \
47+
--openssldir=${{ github.workspace }}/openssl-install
48+
49+
make -j$(nproc)
50+
make install_sw
51+
52+
cd ..
53+
rm -rf openssl
54+
55+
echo "✅ OpenSSL 1.1.1w built successfully"
56+
57+
# ===============================
58+
# Upload artifact
59+
# ===============================
60+
- name: Upload OpenSSL artifact
61+
if: steps.openssl-cache.outputs.cache-hit != 'true'
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: openssl-${{ runner.os }}-1.1.1w
65+
path: openssl-install

0 commit comments

Comments
 (0)