Skip to content

Commit

Permalink
Fix CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele77 committed Oct 17, 2024
1 parent 82e2a58 commit 120ac1a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/unix_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,22 +96,28 @@ jobs:
# 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
- name: Configure CMake
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
- name: Configure CMake - Unix
if: runner.os != 'Windows'
run: |
# mkdir build
# cd build
# cmake .. -G "${{matrix.generator}}" -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -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:BOOL=${{ runner.os != 'Windows' }} -DCLI_BuildExamples=ON -DCLI_UseBoostAsio=ON
- name: Configure CMake - Windows
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:BOOL=${{ runner.os != 'Windows' }} -DCLI_BuildExamples=ON -DCLI_UseBoostAsio=ON
- name: Build
run: |
# cd /home/runner/work/cli/cli/build
# make all
cmake --build ./build --config ${{matrix.build_type}}
- name: run tests - Unix
if: runner.os != 'Windows'
- name: run tests
# if: runner.os != 'Windows'
# working-directory: ./build/test/${{matrix.build_type}}
working-directory: ./build
run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/win_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
build_type:
- Release
- Debug

standard: [14, 17, 20]

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -34,7 +35,7 @@ jobs:
move asio-asio-1-18-2 asio
- name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -DASIO_INCLUDEDIR=${{ github.workspace }}/asio/asio/include -DCLI_BuildTests=ON -DCLI_BuildExamples=ON -DCLI_UseBoostAsio=ON
run: cmake -S . -B build -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -DASIO_INCLUDEDIR=${{ github.workspace }}/asio/asio/include -DCLI_BuildTests=ON -DCLI_BuildExamples=ON -DCLI_UseBoostAsio=ON -DCMAKE_CXX_STANDARD=${{matrix.standard}}

- name: Build
run: cmake --build build --config ${{matrix.build_type}}
Expand Down

0 comments on commit 120ac1a

Please sign in to comment.