]> Nishi Git Mirror - gwion.git/commitdiff
:art: Update
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sat, 7 Dec 2019 00:05:33 +0000 (01:05 +0100)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sat, 7 Dec 2019 00:05:33 +0000 (01:05 +0100)
.github/workflows/linux.yml [new file with mode: 0644]
.github/workflows/macos.yml [new file with mode: 0644]

diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
new file mode 100644 (file)
index 0000000..49d7ff4
--- /dev/null
@@ -0,0 +1,30 @@
+
+name: Linux
+
+on: [push]
+
+jobs:
+  build:
+    name: ${{ matrix.cc }} ${{ matrix.double && 'double' || ''}}
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        cc: [gcc, clang]
+        double: [0, 1]
+
+    steps:
+    - uses: actions/checkout@v1
+    - name: submodules
+      run: git submodule update --init util ast
+    - name: make
+      env:
+         USE_DOUBLE: ${{ matrix.double }}
+         CFLAGS: -fsanitize=address -fno-omit-frame-pointer
+         LDFLAGS: -fsanitize=address -fno-omit-frame-pointer
+      run: make CC=${{ matrix.cc }} USE_DOUBLE=${{ matrix.double }}
+    - name: make test ${{ runner.temp }}
+      env:
+        VALGRIND: NO_VALGRIND
+        USE_MEMCHECK: 0
+        SEVERITY: 3
+      run: export GWION_TEST_DIR=${{ runner.tmp }}/tmp/test; mkdir $GWION_TEST_DIR && make test
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
new file mode 100644 (file)
index 0000000..5c33470
--- /dev/null
@@ -0,0 +1,30 @@
+
+name: MacOS
+
+on: [push]
+
+jobs:
+  build:
+    name: ${{ matrix.cc }} ${{ matrix.double && 'double' || ''}}
+    runs-on: macos-latest
+    strategy:
+      matrix:
+        cc: [gcc, clang]
+        double: [0, 1]
+
+    steps:
+    - uses: actions/checkout@v1
+    - name: submodules
+      run: git submodule update --init util ast
+    - name: make
+      env:
+         USE_DOUBLE: ${{ matrix.double }}
+         CFLAGS: -fsanitize=address -fno-omit-frame-pointer
+         LDFLAGS: -fsanitize=address -fno-omit-frame-pointer
+      run: make CC=${{ matrix.cc }} USE_DOUBLE=${{ matrix.double }}
+    - name: make test ${{ runner.temp }}
+      env:
+        VALGRIND: NO_VALGRIND
+        USE_MEMCHECK: 0
+        SEVERITY: 3
+      run: export GWION_TEST_DIR=${{ runner.tmp }}/tmp/test; mkdir $GWION_TEST_DIR && make test