Skip to content

Commit

Permalink
Disable win test execution on CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele77 committed Oct 17, 2024
1 parent ea6bad7 commit f62a2e3
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/unix_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ jobs:
compiler: msvc
generator: "Visual Studio 17 2022"
build_type: Debug
standard: 23
- os: windows-2022
compiler: msvc
generator: "Visual Studio 17 2022"
build_type: Release
standard: 23
package_generator: ZIP



steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -92,10 +92,6 @@ jobs:
choco install ninja
choco install boost-msvc-14.1
# # Download and extract Asio
# Invoke-WebRequest -Uri https://sourceforge.net/projects/asio/files/asio/1.18.2%20%28Stable%29/asio-1.18.2.zip -OutFile asio.zip
# Expand-Archive -Path asio.zip -DestinationPath $env:USERPROFILE\asio
# # Set ASIO_INCLUDE_DIR environment variable
# echo "ASIO_INCLUDE_DIR=$env:USERPROFILE\asio\asio-1.18.2\include" >> $env:GITHUB_ENV
curl -L -o asio.zip https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-18-2.zip
tar -xf asio.zip
move asio-asio-1-18-2 asio
Expand All @@ -106,9 +102,10 @@ jobs:
cmake -S . -B ./build -G "${{matrix.generator}}" -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -DCMAKE_CXX_STANDARD=${{matrix.standard}} -DCLI_BuildTests=ON -DCLI_BuildExamples=ON -DCLI_UseBoostAsio=ON
- name: Configure CMake - Windows
# windows need asio library path
if: runner.os == 'Windows'
run: |
cmake -S . -B ./build -G "${{matrix.generator}}" -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -DASIO_INCLUDEDIR=${{ github.workspace }}/asio/asio/include -DCLI_BuildTests=ON -DCLI_BuildExamples=ON -DCLI_UseBoostAsio=ON
cmake -S . -B ./build -G "${{matrix.generator}}" -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -DCMAKE_CXX_STANDARD=${{matrix.standard}} -DCLI_BuildTests=ON -DCLI_BuildExamples=ON -DCLI_UseBoostAsio=ON -DASIO_INCLUDEDIR=${{ github.workspace }}/asio/asio/include
- name: Build
run: |
Expand All @@ -117,7 +114,8 @@ jobs:
cmake --build ./build --config ${{matrix.build_type}}
- name: run tests
# if: runner.os != 'Windows'
# on windows test_suite throws an exception, but only on the CI environment!
if: runner.os != 'Windows'
# working-directory: ./build/test/${{matrix.build_type}}
working-directory: ./build
run: |
Expand Down

0 comments on commit f62a2e3

Please sign in to comment.