未验证 提交 4c180821 编写于 作者: 羽飞's avatar 羽飞 提交者: GitHub

Update build.yml

add deps prefix
上级 0c83dad8
......@@ -9,6 +9,7 @@ on:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
DEPS_PREFIX: /usr/local/
jobs:
build:
......@@ -24,7 +25,7 @@ jobs:
submodules: recursive
- name: build deps/googletest
run: cmake -DCMAKE_INSTALL_PREFIX=/usr -B ${{github.workspace}}/deps/googletest/build -S ${{github.workspace}}/deps/googletest && cmake --build ${{github.workspace}}/deps/googletest/build --config ${{env.BUILD_TYPE}} --target install
run: cmake -DCMAKE_INSTALL_PREFIX=${{env.DEPS_PREFIX}} -B ${{github.workspace}}/deps/googletest/build -S ${{github.workspace}}/deps/googletest && cmake --build ${{github.workspace}}/deps/googletest/build --config ${{env.BUILD_TYPE}} --target install
- 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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册