Skip to content

Commit

Permalink
Merge pull request #12 from threeal/add-cmake-action
Browse files Browse the repository at this point in the history
Use CMake Action
  • Loading branch information
threeal authored Jan 22, 2023
2 parents e78cfa2 + e884a5f commit 678a974
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3.3.0

- name: Configure CMake
run: cmake . -B build

- name: Build targets
run: cmake --build build
- name: Configure and build this project
uses: threeal/cmake-action@v1.0.0
19 changes: 9 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3.3.0

- name: Configure CMake
run: cmake . -B build -DBUILD_TESTING=ON

- name: Build targets
run: cmake --build build
- name: Configure and build this project
uses: threeal/cmake-action@latest
with:
args: -DBUILD_TESTING=ON

- name: Run tests
run: ctest --test-dir build --verbose
Expand All @@ -30,11 +29,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3.3.0

- name: Configure CMake
run: cmake . -B build -DCMAKE_CXX_FLAGS='-Werror' -DBUILD_TESTING=ON

- name: Build targets
run: cmake --build build
- name: Configure and build this project
uses: threeal/cmake-action@latest
with:
cxx-flags: -Werror
args: -DBUILD_TESTING=ON

check-formatting:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 678a974

Please sign in to comment.