From b6accc84d03f72f22c27f62e2dfd45cd02e9c2f3 Mon Sep 17 00:00:00 2001
From: Linfeng Qian <thewawar@gmail.com>
Date: Thu, 26 Oct 2023 23:25:33 +0800
Subject: [PATCH] Update release build CI config

---
 .github/workflows/build.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index dfdbde3..6fa4018 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -81,6 +81,7 @@ jobs:
     env:
       BINARY_EXTENSION: ${{ endsWith(matrix.target, '-msvc') && '.exe' || '' }}
       PATH_BINARY: ${{ github.workspace }}/target/${{ matrix.TARGET }}/release/simple-http-server${{ matrix.EXTENSION }}${{ endsWith(matrix.target, '-msvc') && '.exe' || '' }}
+      OPENSSL_STATIC: 1
     steps:
       - uses: actions/checkout@v2
       - uses: actions-rs/toolchain@v1
@@ -89,6 +90,10 @@ jobs:
           override: true
           components: clippy
           target: ${{ matrix.target }}
+      - if: ${{ matrix.os == 'ubuntu-latest' }}
+        run: sudo apt update -y && sudo apt install libssl-dev -y
+      - if: ${{ matrix.os == 'macos-latest' }}
+        run: brew install openssl
       - uses: actions-rs/cargo@v1
         with:
           use-cross: true
-- 
GitLab