Skip to content

Commit

Permalink
try to run CI on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
chipot committed Jan 4, 2024
1 parent b5da606 commit 15bfb4b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 2 additions & 3 deletions regress/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ foreach(SOURCE_FILE ${ALL_C_TESTS})
COMMAND $<TARGET_FILE:${TEST_NAME}>)
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)
Expand Down

0 comments on commit 15bfb4b

Please sign in to comment.