Skip to content

Commit

Permalink
round 2 : fight
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolm committed Nov 9, 2023
1 parent b98e295 commit 7120987
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ jobs:
- uses: actions/checkout@v3

- name: Configure CMake
run: cmake -B ${{github.workspace}}\tests
working-directory: ${{github.workspace}}\tests
run: cmake -B

- name: Build
run: cmake --build ${{github.workspace}}\
working-directory: ${{github.workspace}}\tests
run: cmake --build

- name: Test
working-directory: ${{github.workspace}}\
run: ./test
working-directory: ${{github.workspace}}\tests
run: test
6 changes: 5 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ project(simd_unit_tests)

add_executable(test test_simd.c)

target_compile_options(test PRIVATE -Wall -Wextra -Wpedantic -Werror -mavx -lm)
if (CMAKE_HOST_LINUX)
target_compile_options(test PRIVATE -Wall -Wextra -Wpedantic -Werror -mavx -lm)
else()
target_compile_options(test PRIVATE -Wall -Wextra -Wpedantic -Werror -mavx)
endif()

0 comments on commit 7120987

Please sign in to comment.