From 5456c5dcdbacab76633b4ed06e7ece3269539834 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sat, 7 Dec 2019 01:05:33 +0100 Subject: [PATCH] :art: Update --- .github/workflows/linux.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/macos.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 .github/workflows/linux.yml create mode 100644 .github/workflows/macos.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 00000000..49d7ff4d --- /dev/null +++ b/.github/workflows/linux.yml @@ -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 index 00000000..5c334709 --- /dev/null +++ b/.github/workflows/macos.yml @@ -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 -- 2.43.0