From f230ee19df342a3b796c626bbfc3a75c16af2fd9 Mon Sep 17 00:00:00 2001 From: Guillaume Poirier-Morency Date: Sat, 14 Nov 2026 11:08:03 -0500 Subject: [PATCH 1/4] Add a CI config for GitHub --- .github/workflows/main.yaml | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 00000000..955db3f7 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,41 @@ +name: CI + +on: [pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-24.04, ubuntu-latest] + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Update APT cache + run: sudo apt-get update --quiet + + - name: Install dependencies + run: sudo apt-get install --yes valac libglib2.0-bin libglib2.0-dev libsoup2.4-dev libfcgi-dev gcovr valgrind ninja-build meson + + - name: Build + run: | + mkdir build + meson -D b_coverage=true . build + ninja -C build -v + + - name: Test + run: | + meson test -C build --wrapper valgrind --print-errorlogs --num-processes=1 -v + DESTDIR=$(mktemp -d) ninja -C build -v install + +# - name: Generate coverage reports +# run: ninja -C build -v coverage + +# - name: Report coverage to Codecov +# uses: codecov/codecov-action@v2.1.0 +# with: +# directory: build +# fail_ci_if_error: true From dac4beafadc13e28d051eb0776dfd52c5e365f61 Mon Sep 17 00:00:00 2001 From: Guillaume Poirier-Morency Date: Sat, 7 Nov 2026 15:57:56 -0500 Subject: [PATCH 2/4] Fix signature and missing vsgi_server_construct --- src/vsgi-multipart-input-stream.vala | 2 +- src/vsgi-server.vala | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vsgi-multipart-input-stream.vala b/src/vsgi-multipart-input-stream.vala index a1e88698..5a337ac7 100644 --- a/src/vsgi-multipart-input-stream.vala +++ b/src/vsgi-multipart-input-stream.vala @@ -18,7 +18,7 @@ using GLib; #if HAVE_MEMMEM -private extern void* memmem (uint8[] haystack, uint8[] needle); +private extern void* memmem ([CCode(type = "const void*", array_length_type = "size_t")] uint8[] haystack, [CCode(type = "const void*", array_length_type = "size_t")] uint8[] needle); #else private void* memmem (uint8[] haystack, uint8[] needle) { for (var i = 0; i < haystack.length - needle.length + 1; i++) { diff --git a/src/vsgi-server.vala b/src/vsgi-server.vala index 66b01844..543f8757 100644 --- a/src/vsgi-server.vala +++ b/src/vsgi-server.vala @@ -19,6 +19,9 @@ using GLib; namespace VSGI { + [CCode (cname = "vsgi_server_construct")] + public extern unowned Server server_construct (GLib.Type object_type); + /** * Server that feeds a {@link VSGI.Handler} with incoming requests. * From 2a84643cea3de8fd4f91884de45c7e089b8e3a99 Mon Sep 17 00:00:00 2001 From: Guillaume Poirier-Morency Date: Sat, 14 Nov 2026 11:14:01 -0500 Subject: [PATCH 3/4] Use specific Ubuntu release and add 22.04 --- .github/workflows/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 955db3f7..4613d039 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - os: [ubuntu-24.04, ubuntu-latest] + os: [ubuntu-22.04, ubuntu-24.04, ubuntu-26.04] steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it From 2e28c2ee87b0bfd0501d7b2d0ec56e5d6fbecc27 Mon Sep 17 00:00:00 2001 From: Guillaume Poirier-Morency Date: Sat, 14 Nov 2026 11:22:28 -0500 Subject: [PATCH 4/4] Drop defunct coverage setup --- .github/workflows/main.yaml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 4613d039..7ab9e8f9 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -18,12 +18,12 @@ jobs: run: sudo apt-get update --quiet - name: Install dependencies - run: sudo apt-get install --yes valac libglib2.0-bin libglib2.0-dev libsoup2.4-dev libfcgi-dev gcovr valgrind ninja-build meson + run: sudo apt-get install --yes valac libglib2.0-bin libglib2.0-dev libsoup2.4-dev libfcgi-dev valgrind ninja-build meson - name: Build run: | mkdir build - meson -D b_coverage=true . build + meson . build ninja -C build -v - name: Test @@ -31,11 +31,3 @@ jobs: meson test -C build --wrapper valgrind --print-errorlogs --num-processes=1 -v DESTDIR=$(mktemp -d) ninja -C build -v install -# - name: Generate coverage reports -# run: ninja -C build -v coverage - -# - name: Report coverage to Codecov -# uses: codecov/codecov-action@v2.1.0 -# with: -# directory: build -# fail_ci_if_error: true