From 4f67273ceab9b94c169032f22d3cc22c4461d994 Mon Sep 17 00:00:00 2001 From: codeworse Date: Sun, 8 Jun 2025 22:59:47 +0000 Subject: [PATCH 1/3] modify workflow --- .github/workflows/c-cpp.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 1cc6da7..a7976c7 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -14,12 +14,24 @@ jobs: steps: - uses: actions/checkout@v4 - name: build + uses: actions/upload-artifact@v4 run: mkdir build && cd build && cmake .. && make -j `nproc` - name: build_asan + uses: actions/upload-artifact@v4 run: mkdir build_asan && cd build_asan && cmake -DENABLE_ASAN=ON .. && make -j `nproc` - name: build_tsan + uses: actions/upload-artifact@v4 run: mkdir build_msan && cd build_msan && cmake -DENABLE_TSAN=ON .. && make -j `nproc` - name: build_ubsan + uses: actions/upload-artifact@v4 run: mkdir build_ubsan && cd build_ubsan && cmake -DENABLE_UBSAN=ON .. && make -j `nproc` + test: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/checkout@v4 + - uses: actions/upload-artifact@v4 + - name: test_ubsan + run: cd ubsan_build && ./tests/tests - name: test run: cd build && ./tests/tests From 90917a18a0bb6f046ca4603bed65714dc6c6e923 Mon Sep 17 00:00:00 2001 From: codeworse Date: Sun, 8 Jun 2025 23:01:06 +0000 Subject: [PATCH 2/3] modify workflow modify workflow modify workflow modify workflow modify workflow modify workflow fix fix fix fix --- .github/workflows/c-cpp.yml | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index a7976c7..9010b71 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -14,24 +14,36 @@ jobs: steps: - uses: actions/checkout@v4 - name: build - uses: actions/upload-artifact@v4 run: mkdir build && cd build && cmake .. && make -j `nproc` - name: build_asan - uses: actions/upload-artifact@v4 run: mkdir build_asan && cd build_asan && cmake -DENABLE_ASAN=ON .. && make -j `nproc` - name: build_tsan - uses: actions/upload-artifact@v4 - 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 - uses: actions/upload-artifact@v4 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/upload-artifact@v4 - - name: test_ubsan - run: cd ubsan_build && ./tests/tests + - uses: actions/download-artifact@v4 + with: + name: builds + path: builds + - name: List of build files + run: ls -R 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 From 467c7f5b223c85b6d4ad8ab7b429fdb0b7649cc7 Mon Sep 17 00:00:00 2001 From: codeworse Date: Sun, 8 Jun 2025 23:38:40 +0000 Subject: [PATCH 3/3] erase debug --- .github/workflows/c-cpp.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 9010b71..735024e 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -35,8 +35,6 @@ jobs: with: name: builds path: builds - - name: List of build files - run: ls -R builds - name: test run: | cd builds/build