diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml index a52fe10e..70febddf 100644 --- a/.builds/freebsd.yml +++ b/.builds/freebsd.yml @@ -10,3 +10,9 @@ tasks: gmake test sudo gmake install sudo gmake uninstall +- build-sanitizers: | + cd janet + CFLAGS="-g -O2 -fsanitize=address,undefined" gmake + gmake test + sudo gmake install + sudo gmake uninstall diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b2669786..7a7dbde8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,6 +21,20 @@ jobs: - name: Test the project run: make test + test-posix-sanitizers: + name: Build and test on POSIX systems with sanitizers turned on + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest ] + steps: + - name: Checkout the repository + uses: actions/checkout@master + - name: Compile the project + run: make clean && CFLAGS="-g -O2 -fsanitize=address,undefined" make + - name: Test the project + run: make test + test-windows: name: Build and test on Windows strategy: