From a9abb9fa5b9124174e9a7ddeec95c8323f4b16af Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 20 Aug 2023 23:37:08 +0200 Subject: Split build and run Both in the CI, and in the Makefile --- .github/workflows/coverage.yaml | 2 +- .github/workflows/testsuite.yaml | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index eaf5a87..28a2cd6 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -39,7 +39,7 @@ jobs: - name: Installing lcov run: sudo apt install lcov - name: Running the testsuite - run: make -C tests clean coverage + run: make -C tests clean coverage run - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact diff --git a/.github/workflows/testsuite.yaml b/.github/workflows/testsuite.yaml index 9588cb8..c2ca309 100644 --- a/.github/workflows/testsuite.yaml +++ b/.github/workflows/testsuite.yaml @@ -30,9 +30,12 @@ jobs: run: | sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.version }} 100 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.version }} 100 + - name: Build + shell: bash + run: make -C tests gcc - name: Running the testsuite shell: bash - run: make -C tests gcc | grep -zqv FAIL + run: make -C tests run | grep -zqv FAIL clang: runs-on: ubuntu-latest @@ -58,6 +61,9 @@ jobs: run: | sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${{ matrix.version }} 100 sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ matrix.version }} 100 + - name: Build + shell: bash + run: make -C tests clang - name: Running the testsuite shell: bash - run: make -C tests clang | grep -zqv FAIL + run: make -C tests run | grep -zqv FAIL -- cgit v1.3