aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/openssl.yml
blob: f622360e7dad75728b9ec3a167c7601f2bd04b98 (plain)
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
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