Skip to content

Commit 68b966a

Browse files
committed
ci: Fix CI issues
1 parent 1f67cb1 commit 68b966a

4 files changed

Lines changed: 17 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ jobs:
220220
}
221221
- {
222222
name: 'Windows Clang',
223-
cc: clang,
224-
cxx: clang++,
225-
profiles: '-pr:h conan/clang20'
223+
cc: clang-cl,
224+
cxx: clang-cl,
225+
profiles: '-pr:h conan/msvc194-clang-cl'
226226
}
227227
steps:
228228
- name: Checkout repository

conan/msvc194-clang-cl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
include(cppstd)
2+
3+
[settings]
4+
compiler=msvc
5+
compiler.version=194
6+
compiler.cstd=17
7+
compiler.runtime=dynamic
8+
compiler.runtime_type=Release

src/fetcher.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Project : leetcode-cpp
44
* Author : Wei Tan <tanwei.winterreise@gmail.com>
55
* Date : 2026-02-12 15:06:15
6-
* Last Modified Date: 2026-02-12 15:06:43
6+
* Last Modified Date: 2026-02-12 17:36:13
77
* Last Modified By : Wei Tan <tanwei.winterreise@gmail.com>
88
*/
99

@@ -17,7 +17,7 @@
1717
#include <vector>
1818

1919
// Third-party headers
20-
#include "nlohmann/json.hpp"
20+
#include <nlohmann/json.hpp>
2121

2222
namespace fetcher {
2323
using json = nlohmann::json;

src/main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Project : leetcode-cpp
44
* Author : Wei Tan <tanwei.winterreise@gmail.com>
55
* Date : 2026-02-12 17:15:14
6-
* Last Modified Date: 2026-02-12 17:15:34
6+
* Last Modified Date: 2026-02-12 17:36:05
77
* Last Modified By : Wei Tan <tanwei.winterreise@gmail.com>
88
*/
99

@@ -261,6 +261,9 @@ static void deal_problem(const fetcher::Problem& problem,
261261
if (!tmpl) {
262262
tmpl.open("./template.cpp");
263263
}
264+
if (!tmpl) {
265+
throw std::runtime_error("template.cpp not found");
266+
}
264267
std::string tpl;
265268
tpl.assign(std::istreambuf_iterator<char>(tmpl),
266269
std::istreambuf_iterator<char>());

0 commit comments

Comments
 (0)