Skip to content

Install and link against LibreSSL in build-and-test GHA #180

Install and link against LibreSSL in build-and-test GHA

Install and link against LibreSSL in build-and-test GHA #180

Workflow file for this run

name: Build
# trigger the workflow on push or pull requests
on: [push, pull_request, workflow_dispatch]
jobs:
build-and-run-tests:
runs-on: ubuntu-20.04 # this is a GitHub Runner, hosting the execution
container: ubuntu:18.04 # but this is a Docker Hub container, in which everything runs
services:
redis:
image: redis:7.0.12-alpine # Docker Hub image used as a sidecar
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
apt-get -y update
apt-get -y --allow-unauthenticated --allow-downgrades --allow-remove-essential --allow-change-held-packages \
install make gcc libevent-dev libmsgpack-dev python3 curl
- name: Build and install LibreSSL
run: |
cd /tmp
curl http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.7.3.tar.gz | tar -xzv
cd libressl-3.7.3
./configure --libdir=/lib/x86_64-linux-gnu
make -j
make check
make -j install
- name: Build
run: make SSL=1
- name: Run Webdis and test
run: |
./webdis .github/workflows/webdis-ci.json
sleep 2
./tests/basic.py
./tests/curl-tests.sh
- name: Archive logs
uses: actions/upload-artifact@v2
with:
name: webdis.log
path: webdis.log