--- /dev/null
+
+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
--- /dev/null
+
+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