update github workflows to fit patched libssh

This commit is contained in:
Ryo Nakamura
2022-11-24 22:59:59 +09:00
parent 6f9aaeab80
commit b46a6f15c1
5 changed files with 54 additions and 23 deletions

View File

@@ -19,18 +19,23 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
submodules: true
# libssh and cmake are already installed on the macos-latest runner, 2022/11/5
# - name: install build dependency
#run: |
# brew update
# brew install libssh
# brew install cmake
- name: install build dependency
run: ./scripts/install-build-deps.sh
- name: save homebrew prefix
id: brew-prefix
run: echo "HOMEBREW_PREFIX=$(brew --prefix)" >> $GITHUB_OUTPUT
- name: patch to libssh
run: patch -d libssh -p1 < patch/libssh-0.10.4.patch
- 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}}
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
- name: Build
# Build your program with the given configuration