rexim 4 anni fa
parent
commit
55fb98e229
1 ha cambiato i file con 37 aggiunte e 0 eliminazioni
  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