mirror of
https://github.com/upa/mscp.git
synced 2026-02-17 03:14:44 +08:00
update github workflows to fit patched libssh
This commit is contained in:
19
.github/workflows/build-macos.yml
vendored
19
.github/workflows/build-macos.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user