From 73a442084e2e354341f9fd5fb3e6165d6462d4b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B1=E3=82=A4=E3=83=88?= <55351037+kateBea@users.noreply.github.com> Date: Sat, 1 Jun 2024 12:53:23 +0200 Subject: [PATCH] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 445c974..3f0f55d 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -8,16 +8,22 @@ on: jobs: build: - runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: configure - run: ./configure - - name: make - run: make - - name: make check - run: make check - - name: make distcheck - run: make distcheck + + - name: Install CMake + run: sudo apt-get install cmake + + - name: Create build directory + run: mkdir build + + - name: Configure CMake + run: cd build && cmake .. + + - name: Build + run: cd build && cmake --build . + + - name: Run tests + run: cd build && ctest