rexim 4 rokov pred
rodič
commit
55fb98e229
1 zmenil súbory, kde vykonal 37 pridanie a 0 odobranie
  1. 37 0
      .github/workflows/ci.yml

+ 37 - 0
.github/workflows/ci.yml

@@ -0,0 +1,37 @@
+name: CI
+on: [push, pull_request]
+
+jobs:
+  build-linux-gcc:
+    runs-on: ubuntu-18.04
+    steps:
+      - uses: actions/checkout@v1
+      - name: build all and examples
+        run: |
+          make -k
+          ./test
+        env:
+          CC: gcc
+          CXX: g++
+  build-linux-clang:
+    runs-on: ubuntu-18.04
+    steps:
+      - name: build all and examples
+        run: |
+          make -k
+          ./test
+        env:
+          CC: clang
+          CXX: clang++
+  build-macos:
+    runs-on: macOS-latest
+    steps:
+      - uses: actions/checkout@v1
+      - name: build all and examples
+        run: |
+          make -k
+          ./test
+        env:
+          CC: clang
+          CXX: clang++
+# TODO: there is not build for Windows