Skip to content

Commit

Permalink
Remove Makefile, use cmake and update build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
chmorgan committed Jun 10, 2022
1 parent db03e43 commit 7471772
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 36 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install -y clang-tools check cmake
- name: make
run: make
- name: cmake
run: "( rm -rf build && mkdir build && cd build && cmake .. && make && ./tests && echo OK )"
run: "( rm -rf build && mkdir build && cd build && cmake .. && make && CTEST_OUTPUT_ON_FAILURE=1 make
test && echo OK )"
31 changes: 0 additions & 31 deletions Makefile

This file was deleted.

12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,19 @@ good to go.

Building and running the tests requires the following:

* CMake
* Check Framework (https://libcheck.github.io/check/).
* Clang Static Analyzer (https://clang-analyzer.llvm.org/).

If you have both in your ``$PATH``, running the tests should be as simple as
typing ``make``.
If you have both in your ``$PATH``, running the tests should be as simple as:

```
mkdir build
cd build
cmake ../
make
make test
```

## Limitations

Expand Down

0 comments on commit 7471772

Please sign in to comment.