diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b0465c5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,16 @@ +name: main +on: [push, pull_request] +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + steps: + - uses: actions/checkout@v2 + - name: configure + run: cmake -B build -D CMAKE_BUILD_TYPE=Release + - name: build + run: cmake --build build --parallel 2 + - name: test + run: cd build && ctest -VV \ No newline at end of file diff --git a/regress/CMakeLists.txt b/regress/CMakeLists.txt index afa1117..ad74745 100644 --- a/regress/CMakeLists.txt +++ b/regress/CMakeLists.txt @@ -14,10 +14,9 @@ foreach(SOURCE_FILE ${ALL_C_TESTS}) COMMAND $) endforeach(SOURCE_FILE) -# Shell based tests (needs a posix shell and `ip' command) +# Shell based tests (needs a posix shell) # ----------------- -find_program(IP_COMMAND ip) -if (IP_COMMAND) +if (UNIX) file(GLOB ALL_SH_TESTS test*.sh) foreach(SOURCE_FILE ${ALL_SH_TESTS}) get_filename_component(TEST_NAME ${SOURCE_FILE} NAME_WE)