From b517e88e117555d6ee625e16d42e0ab9a914d68f Mon Sep 17 00:00:00 2001 From: Paul Coignac <61156794+DayUx@users.noreply.github.com> Date: Tue, 11 Nov 2025 20:55:48 +0100 Subject: [PATCH 1/4] Features/latest release if not pre release (#6) * make `make_latest` dynamic based on pre-release label * make `prerelease` dynamic based on pre-release label * restructure workflows: add test job and set dependencies for build tasks * Restrict release --- .github/workflows/build-subvision-core.yml | 25 ++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-subvision-core.yml b/.github/workflows/build-subvision-core.yml index 6999284..5b9d7da 100644 --- a/.github/workflows/build-subvision-core.yml +++ b/.github/workflows/build-subvision-core.yml @@ -12,10 +12,8 @@ on: required: false jobs: - build-wasm: + test: runs-on: ubuntu-latest - permissions: - contents: write steps: - name: Checkout repository uses: actions/checkout@v3 @@ -33,7 +31,16 @@ jobs: make -j$(nproc) cd test ./subvision_tests - + + build-wasm: + needs: test + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Build subvision.js & subvision.mjs run: make all @@ -46,6 +53,7 @@ jobs: build_wasm/subvision.mjs build-dotnet: + needs: test runs-on: windows-latest permissions: contents: write @@ -109,10 +117,19 @@ jobs: - name: Create GitHub Release uses: softprops/action-gh-release@v2 + if: | + github.event_name == 'push' && + ( + startsWith(github.ref, 'refs/heads/master') || + startsWith(github.ref, 'refs/heads/main') || + startsWith(github.ref, 'refs/heads/develop') + ) with: tag_name: ${{ steps.version.outputs.version }} name: ${{ steps.version.outputs.version }} body: ${{ inputs.release_notes }} + prerelease : ${{ steps.version.outputs.pre-release-label != '' }} + make_latest: ${{ steps.version.outputs.pre-release-label == '' }} files: | wasm-artifacts/subvision.js wasm-artifacts/subvision.mjs From a64a005ef73fccb6a6cd3ce7a8f30af23fb64c25 Mon Sep 17 00:00:00 2001 From: Paul Coignac <61156794+DayUx@users.noreply.github.com> Date: Sat, 22 Nov 2025 17:20:19 +0100 Subject: [PATCH 2/4] Features/custom logging system (#7) * Feature: Implement custom logging system and integrate into existing code * Feature: Add logging source file to Makefile for custom logging system * Feature: Include logging header in cli_wrapper.cpp for custom logging integration --- .idea/editor.xml | 1 + CMakeLists.txt | 79 ++++++++++++++++++----------------- Makefile | 3 +- cli_wrapper.cpp | 7 ++++ emscripten_binding.cpp | 11 +++-- include/logging.h | 11 +++++ src/image_processing.cpp | 19 +++++---- src/impact_detection.cpp | 3 +- src/logging.cpp | 26 ++++++++++++ src/sheet_detection.cpp | 12 +++--- src/target_detection.cpp | 3 +- src/utils.cpp | 3 +- test/EllipseDetectionTest.cpp | 14 +++---- test/ImpactDetectionTest.cpp | 13 +++--- 14 files changed, 128 insertions(+), 77 deletions(-) create mode 100644 include/logging.h create mode 100644 src/logging.cpp diff --git a/.idea/editor.xml b/.idea/editor.xml index 25c6c37..198c798 100644 --- a/.idea/editor.xml +++ b/.idea/editor.xml @@ -117,6 +117,7 @@