From a2bac815eed8c8523ef266699d704d15b9681525 Mon Sep 17 00:00:00 2001 From: Vladisalv Sovrasov Date: Tue, 4 Mar 2025 02:23:36 +0900 Subject: [PATCH 1/2] Fix pypi publishing --- .github/workflows/publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 135de1d0..8baa2487 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -61,7 +61,7 @@ jobs: uses: actions-ecosystem/action-regex-match@v2 with: text: ${{ github.ref }} - regex: '^refs/tags/[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+rc[0-9]+|rc[0-9]+)?$' + regex: '^refs/tags/[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)+(\.[0-9]+rc[0-9]+|rc[0-9]+)?$' - name: Upload package distributions to github if: ${{ steps.check-tag.outputs.match != '' }} uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2 From 11edbe63db0e21a9ba81639f8da05c2e0f82d72e Mon Sep 17 00:00:00 2001 From: Vladisalv Sovrasov Date: Tue, 4 Mar 2025 02:44:06 +0900 Subject: [PATCH 2/2] Try to fix win build warning --- src/cpp/models/include/models/results.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/models/include/models/results.h b/src/cpp/models/include/models/results.h index 710d6ab8..1a648723 100644 --- a/src/cpp/models/include/models/results.h +++ b/src/cpp/models/include/models/results.h @@ -130,11 +130,11 @@ struct ClassificationResult : public ResultBase { } struct Classification { - unsigned int id; + size_t id; std::string label; float score; - Classification(unsigned int id, const std::string& label, float score) : id(id), label(label), score(score) {} + Classification(size_t id, const std::string& label, float score) : id(id), label(label), score(score) {} friend std::ostream& operator<<(std::ostream& os, const Classification& prediction) { return os << prediction.id << " (" << prediction.label << "): " << std::fixed << std::setprecision(3)