Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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