aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-10-19 22:33:24 -0700
committerGarrett D'Amore <garrett@damore.org>2025-10-19 22:52:53 -0700
commit0a8d794c8724d4a127209677b6231761a5dcde78 (patch)
tree02ecfe78f6a3375350acdf84c27b4a785301c7e7 /.github/workflows
parent611c4acdddab9d702d235c2bcfe3b69002e93569 (diff)
downloadnng-0a8d794c8724d4a127209677b6231761a5dcde78.tar.gz
nng-0a8d794c8724d4a127209677b6231761a5dcde78.tar.bz2
nng-0a8d794c8724d4a127209677b6231761a5dcde78.zip
Add openssl workflow
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/openssl.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/openssl.yml b/.github/workflows/openssl.yml
new file mode 100644
index 00000000..f622360e
--- /dev/null
+++ b/.github/workflows/openssl.yml
@@ -0,0 +1,40 @@
+name: openssl
+on:
+ push:
+ paths-ignore: ["docs/**", "**.adoc", "**.md"]
+ pull_request:
+ paths-ignore: ["docs/**", "**.adoc", "**.md"]
+jobs:
+ build:
+ name: build
+ runs-on: [ubuntu-24.04]
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v4
+
+ - name: Install ninja
+ run: sudo apt-get install ninja-build
+
+ - name: Download OpenSSL source
+ run: |
+ # Replace with the desired OpenSSL version
+ OPENSSL_VERSION="openssl-3.5.4"
+ wget https://www.openssl.org/source/${OPENSSL_VERSION}.tar.gz
+ tar -xzf ${OPENSSL_VERSION}.tar.gz
+ mv ${OPENSSL_VERSION} openssl_src
+
+ - name: Build OpenSSL
+ working-directory: openssl_src
+ run: |
+ ./config --prefix=/usr
+ make
+ sudo make install_sw
+
+ - name: Configure
+ run: mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -D NNG_ENABLE_TLS=ON -DNNG_TLS_ENGINE=openssl ..
+
+ - name: Build
+ run: cd build && ninja
+
+ - name: Test
+ run: cd build && ctest --output-on-failure