From 8b02c073ccae0ceb8b1c12a3e65361bab3566151 Mon Sep 17 00:00:00 2001 From: ZhuLingQing Date: Sun, 17 Mar 2024 11:27:32 +0800 Subject: [PATCH] update c-cpp.yml with cmake --- .github/workflows/c-cpp.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index ca9f893..06621db 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -12,12 +12,21 @@ jobs: - uses: actions/checkout@v1 - name: check the environment run: g++ --version && git --version && bash --version - - name: list the environment - run: ls -la - - name: build with bash - run: bash bash_build.sh - - name: run tests + run: cmake --version + - name: make the project run: | + mkdir build pushd build - ./test_pt_os + cmake .. + make popd + - name: test + run: | + pushd build + make test + popd + - name: test with bash + run: | + ./build/tests/test_pt_os + echo "DONE + "