From c17d69a30778e27b6fcc4d509ad93c6cc51eac61 Mon Sep 17 00:00:00 2001 From: Daiki Mizukami Date: Tue, 25 Jul 2023 20:35:52 +0900 Subject: [PATCH] CI: Make cross-compiled release artifacts statically linked to OpenSSL We preferred dynamic linking because that makes it easy for end users to upgrade OpenSSL (potentially with security fixes) without reinstalling the app. When cross-compiling, however, we use a container based on Ubuntu 20.04, which does not have `libssl3` package, making the release artifact depend on OpenSSL 1.1.1, which will reach EOL at 2013-09-11 (). See also for current status of the container image. This commit aims at working around the problem by statically linking against OpenSSL when cross compiling, so that the end user does not need to install OpenSSL 1.1.1. --- .github/workflows/cicd.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 86b7348..3ed4799 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -121,8 +121,10 @@ jobs: - os: ubuntu-latest - target: aarch64-unknown-linux-gnu use_cross: true + features: [openssl-vendored] - target: armv7-unknown-linux-gnueabihf use_cross: true + features: [openssl-vendored] - target: aarch64-apple-darwin os: macos-latest - target: x86_64-apple-darwin