Skip to content

Commit

Permalink
Update cmake-multi-platform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eikarna authored Jun 2, 2024
1 parent a58dd70 commit e158351
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
os: [ubuntu-latest, windows-latest]
build_type: [Release]
cpp_compiler: [g++, clang++]
openssl_version: ["3.0.0"] # Specify the desired OpenSSL version
openssl_version: ["3.0.0"] # Specify the desired OpenSSL version

steps:
- uses: actions/checkout@v4
Expand All @@ -38,12 +38,21 @@ jobs:
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake
- name: Configure CMake (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
${{ matrix.os == 'windows-latest' ? '-DOPENSSL_ROOT_DIR=C:/OpenSSL' : '' }}
-DOPENSSL_ROOT_DIR=C:/OpenSSL
-S ${{ github.workspace }}
- name: Configure CMake (Linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}
- name: Build
Expand Down

0 comments on commit e158351

Please sign in to comment.