Skip to content

Commit

Permalink
CI: Test in BUILD_TYPE directory for win
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-hld authored Feb 6, 2024
1 parent 59971a0 commit 6d3a93b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,16 @@ jobs:
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE

- name: Copy binaries (Windows)
working-directory: ${{runner.workspace}}/build
shell: bash
if: ${{ contains( runner.os, 'Windows' ) }}
run: |
cp ./test/$BUILD_TYPE/saf_test.exe ./test/saf_test
- name: Test
- name: Test (Unix)
working-directory: ${{runner.workspace}}/build
shell: bash
# Execute tests
run: ./test/saf_test

- name: Test (Windows)
working-directory: ${{runner.workspace}}/build
shell: bash
if: ${{ contains( runner.os, 'Windows' ) }}
run: |
ls -lh ./test/$BUILD_TYPE/
./test/$BUILD_TYPE/saf_test.exe

0 comments on commit 6d3a93b

Please sign in to comment.