From 02f46a1924e251987a56d12a99a1ff48d41557cb Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Wed, 31 Jul 2024 22:29:44 +0700 Subject: [PATCH] ci: utilize CMake and CTest actions (#76) * ci: utilize CMake Action * ci: utilize CTest Action --- .github/workflows/build-and-test.yml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 8b4872d..122a976 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -11,25 +11,17 @@ jobs: steps: - name: Checkout this repository uses: actions/checkout@v4.1.7 - with: - path: musen - name: Install test dependencies run: | sudo apt-get update sudo apt-get install -y libgtest-dev - - name: Create a build directory - run: mkdir build - - - name: Configure CMake - working-directory: build - run: cmake -DBUILD_TESTING=ON ../musen - - - name: Build the project - working-directory: build - run: make -j8 + - name: Build project + uses: threeal/cmake-action@v1.3.0 + with: + options: BUILD_TESTING=ON + run-build: true - - name: Test the project - working-directory: build - run: ctest --verbose + - name: Test project + uses: threeal/ctest-action@v1.1.0