Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install OpenSSL
run: |
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
sudo apt update
sudo apt install -y libssl-dev
echo "CMAKE_PREFIX_PATH=/usr" >> $GITHUB_ENV
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
brew update
brew install openssl
OPENSSL_DIR=$(brew --prefix openssl)
echo "CMAKE_PREFIX_PATH=${OPENSSL_DIR}" >> $GITHUB_ENV
elif [[ "${{ matrix.os }}" == "windows-latest" ]]; then
choco install openssl.light --version=3.1.2 -y
echo "CMAKE_PREFIX_PATH=C:/Program Files/OpenSSL-Win64" >> $GITHUB_ENV
fi
shell: bash

- name: Set reusable strings
id: strings
Expand All @@ -42,6 +58,7 @@ jobs:
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_PREFIX_PATH=${{ env.CMAKE_PREFIX_PATH }}
-S ${{ github.workspace }}

- name: Build
Expand Down
Loading
Loading