Skip to content

Commit

Permalink
ci: utilize CMake and CTest actions (#76)
Browse files Browse the repository at this point in the history
* ci: utilize CMake Action

* ci: utilize CTest Action
  • Loading branch information
threeal authored Jul 31, 2024
1 parent e63496e commit 02f46a1
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 02f46a1

Please sign in to comment.