From a857e7b75c6c0dbb6d5eaa7be87facea1d11471f Mon Sep 17 00:00:00 2001 From: H5JKey <115498581+H5JKey@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:32:42 +0300 Subject: [PATCH] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 7cbaf60..e54fb58 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -7,14 +7,18 @@ on: branches: [ "main" ] jobs: - run-tests: - + run-main-tests: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: make - run: mkdir build && cd build && cmake .. && make - - name: make test - run: cd build && make && make test - + - name: Checkout MAIN branch + uses: actions/checkout@v4 + with: + ref: main + + - name: Build and test + run: | + mkdir build + cd build + cmake .. + make + make test