add default package to flake, add pkgconfig and install headers #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Meson CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v22 | |
- name: Configure project | |
run: nix develop -c -- meson setup builddir/ -Doptimization=1 -Ddebug_logs=true -Dtests=true | |
- name: Run Tests | |
run: nix develop -c -- meson test -C builddir/ -v | |
- name: Upload Test Log | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: testlog.txt | |
path: builddir/meson-logs/testlog.txt |