Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,35 @@ jobs:
run: |
g++ -std=c++11 -Wall -Wextra -I. -o TestConcoreHpp TestConcoreHpp.cpp
./TestConcoreHpp

cpp-test-windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4

- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
install: mingw-w64-ucrt-x86_64-gcc

- name: Build and run C++ tests
run: |
g++ -std=c++11 -I. -o TestLiteralEvalCpp TestLiteralEvalCpp.cpp
./TestLiteralEvalCpp
g++ -std=c++11 -I. -o TestConcoreHpp TestConcoreHpp.cpp
./TestConcoreHpp

cpp-test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- name: Build and run C++ tests
run: |
g++ -std=c++11 -I. -o TestLiteralEvalCpp TestLiteralEvalCpp.cpp
./TestLiteralEvalCpp
g++ -std=c++11 -I. -o TestConcoreHpp TestConcoreHpp.cpp
./TestConcoreHpp
2 changes: 1 addition & 1 deletion concore.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class Concore{
* @return The numeric part of the string.
* Returns -1 if the string does not contain a numeric part.
*/
key_t ExtractNumeric(const std::string& str) {
int ExtractNumeric(const std::string& str) {
std::string numberString;

// Find the number of leading digits in the input string
Expand Down
2 changes: 1 addition & 1 deletion concoredocker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class Concore {
inpath + "/1/concore.maxtime", defaultValue);
}

key_t ExtractNumeric(const std::string& str) {
int ExtractNumeric(const std::string& str) {
std::string numberString;
size_t numDigits = 0;
while (numDigits < str.length() && std::isdigit(str[numDigits])) {
Expand Down
Loading