From c16b981d5dc7a6abd32a775d486195fb8b420b13 Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Sun, 19 Jan 2025 15:29:44 +0900 Subject: [PATCH] use openssl@3 on macos --- .github/workflows/build-macos.yml | 2 +- README.md | 2 +- scripts/install-build-deps.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index efe2bf7..c02070a 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -35,7 +35,7 @@ jobs: - 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. # 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 # Build your program with the given configuration diff --git a/README.md b/README.md index 83343fe..e011af9 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ mkdir build && cd build 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 make diff --git a/scripts/install-build-deps.sh b/scripts/install-build-deps.sh index 04d2d5f..f46812e 100755 --- a/scripts/install-build-deps.sh +++ b/scripts/install-build-deps.sh @@ -45,7 +45,7 @@ done case $platform in Darwin) cmd="brew install" - pkgs="openssl@3.0" + pkgs="openssl@3" ;; Linux-ubuntu*) cmd="apt-get install --no-install-recommends -y"