Skip to content

Commit

Permalink
ci: use CMake presets in workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
  • Loading branch information
threeal committed Oct 15, 2024
1 parent 2e23b4a commit 957a54a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ jobs:
uses: actions/checkout@v4.2.1

- name: Configure Project
uses: threeal/cmake-action@v2.0.0
with:
run-build: false
run: cmake --preset default

- name: Install Project
run: cmake --install build --prefix install
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ jobs:
uses: actions/checkout@v4.2.1

- name: Configure Project
uses: threeal/cmake-action@v2.0.0
with:
options: ASSERTION_ENABLE_TESTS=ON
run-build: false
run: cmake --preset development

- name: Test Project
uses: threeal/ctest-action@v1.1.0
with:
verbose: true
run: ctest --preset development

0 comments on commit 957a54a

Please sign in to comment.