Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
Upload Conan artifacts after install.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikogenvik committed Oct 27, 2023
1 parent d0d0163 commit faa959d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ jobs:
shell: bash
run: |
conan install tools/conan -pr default --build=missing --update
if [[ x"$CONAN_PASSWORD" != "x" && x"$CONAN_LOGIN_USERNAME" != "x" ]]; then
conan remote login worldforge $CONAN_LOGIN_USERNAME -p $CONAN_PASSWORD
conan upload "*" -r worldforge -c
fi
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
Expand Down
12 changes: 6 additions & 6 deletions src/squall/core/Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ GenerateEntry Generator::processFile(const std::filesystem::path& filePath) {
auto fileLastWriteTime = std::filesystem::last_write_time(filePath);
if (existingI->second.lastWriteTime >= fileLastWriteTime) {
spdlog::trace("Last write time for file {} was the same ({}), marking as unchanged.", filePath.string(),
std::chrono::clock_cast<std::chrono::system_clock>(fileLastWriteTime).time_since_epoch().count());
fileLastWriteTime.time_since_epoch().count());
return {.fileEntry = existingI->second.fileEntry, .sourcePath=filePath, .repositoryPath=existingI->second.repositoryPath, .status = GenerateFileStatus::Existed};
} else {
spdlog::trace("Last write time for file {} ({}) differed from what was stored in the repo ({}), marking as changed.", filePath.string(),
std::chrono::clock_cast<std::chrono::system_clock>(fileLastWriteTime).time_since_epoch().count(),
std::chrono::clock_cast<std::chrono::system_clock>(existingI->second.lastWriteTime).time_since_epoch().count());
fileLastWriteTime.time_since_epoch().count(),
existingI->second.lastWriteTime.time_since_epoch().count());
}
}
}
Expand All @@ -137,12 +137,12 @@ GenerateEntry Generator::processDirectory(const std::filesystem::path& filePath,
auto fileLastWriteTime = std::filesystem::last_write_time(filePath);
if (existingI->second.lastWriteTime >= fileLastWriteTime) {
spdlog::trace("Last write time for directory {} was the same ({}), marking as unchanged.", filePath.string(),
std::chrono::clock_cast<std::chrono::system_clock>(fileLastWriteTime).time_since_epoch().count());
fileLastWriteTime.time_since_epoch().count());
return {.fileEntry = existingI->second.fileEntry, .sourcePath=filePath, .repositoryPath=existingI->second.repositoryPath, .status = GenerateFileStatus::Existed};
} else {
spdlog::trace("Last write time for directory {} ({}) differed from what was stored in the repo ({}), marking as changed.", filePath.string(),
std::chrono::clock_cast<std::chrono::system_clock>(fileLastWriteTime).time_since_epoch().count(),
std::chrono::clock_cast<std::chrono::system_clock>(existingI->second.lastWriteTime).time_since_epoch().count());
fileLastWriteTime.time_since_epoch().count(),
existingI->second.lastWriteTime.time_since_epoch().count());
}
}
}
Expand Down

0 comments on commit faa959d

Please sign in to comment.