Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Builds
name: Build and Test
on:
push:
branches:
Expand Down Expand Up @@ -31,7 +31,8 @@ jobs:
gcc \
meson \
ninja \
pkgconfig
pkgconfig \
valgrind
- name: Configure
run: |
meson setup build \
Expand All @@ -40,6 +41,8 @@ jobs:
run: meson compile -C build
- name: Run unit tests
run: meson test -C build
- name: Run memory profiling
run: meson test --wrapper='valgrind --leak-check=full --error-exitcode=1' -C build
- name: Install
run: meson install -C build
- name: Uninstall
Expand All @@ -60,7 +63,8 @@ jobs:
gcc \
meson \
ninja \
pkgconfig
pkgconfig \
valgrind
- name: Configure
run: |
meson setup build \
Expand Down Expand Up @@ -90,7 +94,8 @@ jobs:
check \
meson \
ninja-build \
pkg-config
pkg-config \
valgrind
- name: Configure
run: |
meson setup build \
Expand All @@ -99,6 +104,8 @@ jobs:
run: meson compile -C build
- name: Run unit tests
run: meson test -C build
- name: Run memory profiling
run: meson test --wrapper='valgrind --leak-check=full --error-exitcode=1' -C build
- name: Install
run: meson install -C build
- name: Uninstall
Expand All @@ -119,7 +126,8 @@ jobs:
check-devel \
gcc \
meson \
ninja-build
ninja-build \
valgrind
- name: Configure
run: |
meson setup build \
Expand All @@ -128,6 +136,8 @@ jobs:
run: meson compile -C build
- name: Run unit tests
run: meson test -C build
- name: Run memory profiling
run: meson test --wrapper='valgrind --leak-check=full --error-exitcode=1' -C build
- name: Install
run: sudo meson install -C build
- name: Uninstall
Expand All @@ -145,7 +155,8 @@ jobs:
sudo apt-get install --assume-yes --no-install-recommends \
check \
meson \
ninja-build
ninja-build \
valgrind
- name: Configure
run: |
meson setup build \
Expand All @@ -154,6 +165,8 @@ jobs:
run: meson compile -C build
- name: Run unit tests
run: meson test -C build
- name: Run memory profiling
run: meson test --wrapper='valgrind --leak-check=full --error-exitcode=1' -C build
- name: Install
run: sudo meson install -C build
- name: Uninstall
Expand Down Expand Up @@ -228,13 +241,15 @@ jobs:
pkg install -y \
check \
meson \
pkgconf
pkgconf \
valgrind
run: |
set -e
meson setup build \
-Denable-tests=true
meson compile -C build
meson test -C build
meson test --wrapper='valgrind --leak-check=full --error-exitcode=1' -C build
meson install -C build
ninja -C build uninstall

Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ only source incompatibility is the removal of the `const_bstring` type.

## Building

The repository currently includes [Meson][] and Autotools ([Autoconf][],
The repository currently includes [Meson][]+[Ninja][] and Autotools ([Autoconf][],
[Automake][], and [Libtool][]) build systems.

[Meson]: https://mesonbuild.com/
[Ninja]: https://ninja-build.org/
[Autoconf]: https://www.gnu.org/software/autoconf/
[Automake]: https://www.gnu.org/software/automake/
[Libtool]: https://www.gnu.org/software/libtool/
Expand All @@ -41,6 +42,10 @@ A test suite is available if Check is is installed.

$ meson test -C build

If Valgrind is installed the test suite can be checked for memory leaks.

$ meson test --wrapper='valgrind --leak-check=full --error-exitcode=1' -C build

### Autotools

To build with Autotools:
Expand Down