diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 1cc6da7..735024e 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -18,8 +18,30 @@ jobs: - name: build_asan run: mkdir build_asan && cd build_asan && cmake -DENABLE_ASAN=ON .. && make -j `nproc` - name: build_tsan - run: mkdir build_msan && cd build_msan && cmake -DENABLE_TSAN=ON .. && make -j `nproc` + run: mkdir build_tsan && cd build_tsan && cmake -DENABLE_TSAN=ON .. && make -j `nproc` - name: build_ubsan run: mkdir build_ubsan && cd build_ubsan && cmake -DENABLE_UBSAN=ON .. && make -j `nproc` + - name: Upload builds + uses: actions/upload-artifact@v4 + with: + name: builds + path: build* + test: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 + with: + name: builds + path: builds - name: test - run: cd build && ./tests/tests + run: | + cd builds/build + chmod +x tests/tests + tests/tests + - name: test_ubsan + run: | + cd builds/build_ubsan + chmod +x tests/tests + tests/tests