Template repository for creating a new Vala shared library project with Meson, tests, CI and release workflow.
- Click Use this template on GitHub.
- Clone your new repository.
- Push your initial commit (or run the workflow manually).
- The
Template BootstrapGitHub Action auto-runs once, commits renamed defaults, and removes itself.
Manual fallback:
./bootstrap-template.shOptional: explicit project slug:
./bootstrap-template.sh my-awesome-libKeep bootstrap script after run:
KEEP_SCRIPT=1 ./bootstrap-template.shmeson setup builddir
meson compile -C builddirmeson test -C builddiror via Makefile helper:
make testsTag-based release workflow (v*) publishes:
- shared library (
lib*.so*) - generated VAPI (
src/vapi/*.vapi) - generated header (
src/*.h) - bundled ZIP (
<repo-name>-<tag>-linux.zip)
In consumer project root:
./init.shOr run directly from GitHub:
curl -sSfL https://raw.githubusercontent.com/ValaTux/library-template/master/init.sh -o init.sh && chmod +x init.sh && ./init.sh && rm init.shIn consumer project root:
curl -sSfL https://raw.githubusercontent.com/ValaTux/library-template/master/init-local-vapi.sh | bashThis helper downloads release artifacts (or builds from source) and prepares local vapi/, lib/, and include/ folders plus reusable Meson variables.
- glib-2.0
- gio-2.0
- gee-0.8
- vala_testcases (tests only)
MIT (see LICENSE).