aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..be6a633
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,38 @@
+name: ci
+
+#on: [push, pull_request]
+on: [push]
+
+jobs:
+ unix:
+ name: "${{ matrix.os }}"
+ runs-on: "${{ matrix.os }}"
+ strategy:
+ matrix:
+ os: [ubuntu-latest, macOS-latest]
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: configure
+ run: cmake .
+ - name: make
+ run: make
+ - name: test
+ run: ctest -V
+ - name: install
+ run: sudo make install
+
+ windows:
+ name: "${{ matrix.os }}"
+ runs-on: "${{ matrix.os }}"
+ strategy:
+ matrix:
+ os: [windows-latest]
+ steps:
+ - uses: actions/checkout@v1
+ - name: configure
+ run: cmake .
+ - name: make
+ run: cmake --build .
+ - name: test
+ run: ctest -V