I think we don't need to test both -O2 and -O3. We're checking memory
error here, they should not be much different under different
optimisation settings (though maybe -O3 can trigger more bugs).
Also did not add myself to the list of authors, I think this trivial
change is not copyrightable.
- name: Build, then run with valgrind (OK without march=native)
run: |
- echo "Valgrind on GCC build with O2"
- make clean; make test.out CFLAGS="-O2" -j4
- valgrind ./test.out
-
- echo "Valgrind on CLANG build with O2"
- make clean; make test.out CC="clang -std=c99" CFLAGS="-O2" -j4
- valgrind ./test.out
-
echo "Valgrind on GCC build with O3"
make clean; make test.out CFLAGS="-O3" -j4
valgrind ./test.out