Skip to content

Commit

Permalink
simplify ci
Browse files Browse the repository at this point in the history
  • Loading branch information
youyuanwu committed Nov 8, 2023
1 parent ebbff53 commit 031d681
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
matrix:
BUILD_TYPE: ["Debug", "Release"]
os: [ windows-latest ]
BOOST_VERSION: [ 1.79.0, 1.83.0 ]
steps:
- uses: actions/checkout@v2

Expand All @@ -34,8 +33,6 @@ jobs:
powershell.exe -Command "Add-Content $env:GITHUB_PATH 'C:\Program Files\OpenCppCoverage'"
- name: run cmake
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
run: >
cmake . -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} -B build
- name: run build
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(winasio_MAIN_PROJECT ON)
endif()

if(winasio_MAIN_PROJECT)
if(winasio_MAIN_PROJECT AND NOT WINASIO_CI_FORMAT)
# configure vcpkg
# we use CmakePresets.json to point to vcpkg
if ("$ENV{VCPKG_ROOT}" STREQUAL "")
message(FATAL_ERROR "VCPKG_ROOT not found")
endif()
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake")
endif(winasio_MAIN_PROJECT)
endif()

project(winasio VERSION 0.0.1 LANGUAGES CXX)

Expand Down

0 comments on commit 031d681

Please sign in to comment.