Skip to content

Commit b29f6e0

Browse files
authored
Fix pypi publishing (#273)
* Fix pypi publishing * Try to fix win build warning
1 parent 9157ebb commit b29f6e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/publish.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
uses: actions-ecosystem/action-regex-match@v2
6262
with:
6363
text: ${{ github.ref }}
64-
regex: '^refs/tags/[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+rc[0-9]+|rc[0-9]+)?$'
64+
regex: '^refs/tags/[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)+(\.[0-9]+rc[0-9]+|rc[0-9]+)?$'
6565
- name: Upload package distributions to github
6666
if: ${{ steps.check-tag.outputs.match != '' }}
6767
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2

src/cpp/models/include/models/results.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ struct ClassificationResult : public ResultBase {
130130
}
131131

132132
struct Classification {
133-
unsigned int id;
133+
size_t id;
134134
std::string label;
135135
float score;
136136

137-
Classification(unsigned int id, const std::string& label, float score) : id(id), label(label), score(score) {}
137+
Classification(size_t id, const std::string& label, float score) : id(id), label(label), score(score) {}
138138

139139
friend std::ostream& operator<<(std::ostream& os, const Classification& prediction) {
140140
return os << prediction.id << " (" << prediction.label << "): " << std::fixed << std::setprecision(3)

0 commit comments

Comments
 (0)