diff options
| author | Ryo Nakamura <upa@haeena.net> | 2022-11-24 22:59:59 +0900 |
|---|---|---|
| committer | Ryo Nakamura <upa@haeena.net> | 2022-11-24 22:59:59 +0900 |
| commit | b46a6f15c1548121747dfafdf9cec9130944be4b (patch) | |
| tree | 18545d6ad04afbabdd83fe473aceb952a48241aa /.github/workflows/build-macos.yml | |
| parent | 6f9aaeab80e601b45b60bd1ca78f5e8fd2f49605 (diff) | |
update github workflows to fit patched libssh
Diffstat (limited to '.github/workflows/build-macos.yml')
| -rw-r--r-- | .github/workflows/build-macos.yml | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index eda49af..a3cd55a 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -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 |
