From 8c6f80494917cdfd8a85128de9684f03c0fd1f80 Mon Sep 17 00:00:00 2001 From: William Yang Date: Thu, 7 Dec 2023 21:15:24 +0100 Subject: [PATCH] Build/william/link os libcrypto (#245) * ci: add manual trigger of release and support link to system libcrypto --- .github/workflows/release.yaml | 7 +++++++ CMakeLists.txt | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 125ce4b8..974d1ef7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,6 +1,12 @@ name: release on: + workflow_dispatch: + inputs: + ref: + description: 'Ref to release' + required: false + default: '' push: tags: - "*" @@ -37,6 +43,7 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 + ref: {{ github.event.inputs.ref }} - name: build release if: startsWith(github.ref, 'refs/tags/') diff --git a/CMakeLists.txt b/CMakeLists.txt index 88c983fe..778d8e73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,11 @@ if (DEFINED ENV{QUICER_USE_OPENSSL3}) set(QUIC_TLS "openssl3") endif() +if (DEFINED ENV{QUIC_USE_SYSTEM_LIBCRYPTO}) + message(STATUS "Link to system libcrypto") + set(QUIC_USE_SYSTEM_LIBCRYPTO "ON") +endif() + if (DEFINED ENV{QUIC_ENABLE_LOGGING}) set(QUIC_ENABLE_LOGGING $ENV{QUIC_ENABLE_LOGGING}) set(QUIC_LOGGING_TYPE lttng)