use openssl@3 on macos

This commit is contained in:
Ryo Nakamura
2025-01-19 15:29:44 +09:00
parent 1c787e562f
commit c16b981d5d
3 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ jobs:
- name: Configure CMake - name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DOPENSSL_ROOT_DIR=${{steps.brew-prefix.outputs.HOMEBREW_PREFIX}}/opt/openssl@1.1 run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DOPENSSL_ROOT_DIR=${{steps.brew-prefix.outputs.HOMEBREW_PREFIX}}/opt/openssl@3
- name: Build - name: Build
# Build your program with the given configuration # Build your program with the given configuration

View File

@@ -96,7 +96,7 @@ mkdir build && cd build
cmake .. cmake ..
# in macOS, you may need OPENSSL_ROOT_DIR for cmake: # in macOS, you may need OPENSSL_ROOT_DIR for cmake:
# cmake .. -DOPENSSL_ROOT_DIR=$(brew --prefix)/opt/openssl@1.1 # cmake .. -DOPENSSL_ROOT_DIR=$(brew --prefix)/opt/openssl@3
# build # build
make make

View File

@@ -45,7 +45,7 @@ done
case $platform in case $platform in
Darwin) Darwin)
cmd="brew install" cmd="brew install"
pkgs="openssl@3.0" pkgs="openssl@3"
;; ;;
Linux-ubuntu*) Linux-ubuntu*)
cmd="apt-get install --no-install-recommends -y" cmd="apt-get install --no-install-recommends -y"