1
0

Compare commits

2 Commits

Author SHA1 Message Date
b51ded2101 chore: add lost cd in CI script 2026-02-02 16:22:32 +08:00
09f07d99f7 fix: fix wrong value hint in clap test.
- remove the bracker (<bla>) in clap test because clap will automatically add it.
2026-02-02 16:21:39 +08:00
4 changed files with 10 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ jobs:
cd ..
cd install
echo "GTest_ROOT=$(pwd)" >> "$GITHUB_ENV"
cd ..
cd ../..
- name: Fetch Google Benchmark
uses: actions/checkout@v4
@@ -55,6 +56,7 @@ jobs:
cd ..
cd install
echo "benchmark_ROOT=$(pwd)" >> "$GITHUB_ENV"
cd ..
cd ../..
- name: Build YYCC
shell: bash

View File

@@ -28,6 +28,7 @@ jobs:
cd ..
cd install
echo "GTest_ROOT=$(pwd)" >> "$GITHUB_ENV"
cd ..
cd ../..
- name: Fetch Google Benchmark
uses: actions/checkout@v4
@@ -50,6 +51,7 @@ jobs:
cd ..
cd install
echo "benchmark_ROOT=$(pwd)" >> "$GITHUB_ENV"
cd ..
cd ../..
- name: Build YYCC
shell: bash

View File

@@ -38,6 +38,7 @@ jobs:
:: Idk why I can't use $GITHUB_ENV, so I use this stupid way to do this.
:: This is first entry so we override it.
echo set GTest_ROOT=%CD% > ../../envs.bat
cd ..
cd ../..
- name: Fetch Google Benchmark
uses: actions/checkout@v4
@@ -62,6 +63,7 @@ jobs:
cd install
:: This is second entry so we append it.
echo set benchmark_ROOT=%CD% >> ../../envs.bat
cd ..
cd ../..
- name: Build YYCC
shell: cmd

View File

@@ -72,10 +72,10 @@ namespace yycctest::carton::clap {
// Add options
auto options = CLAP::option::OptionCollection();
int_option = options.add_option(CLAP::option::Option(u8"i", u8"int", u8"<integer>", u8"integral argument"));
float_option = options.add_option(CLAP::option::Option(u8"f", std::nullopt, u8"<float>", u8""));
string_option = options.add_option(CLAP::option::Option(std::nullopt, u8"string", u8"<string>", u8""));
clamped_float_option = options.add_option(CLAP::option::Option(std::nullopt, u8"clamped-float", u8"<float>", u8""));
int_option = options.add_option(CLAP::option::Option(u8"i", u8"int", u8"integer", u8"integral argument"));
float_option = options.add_option(CLAP::option::Option(u8"f", std::nullopt, u8"float", u8""));
string_option = options.add_option(CLAP::option::Option(std::nullopt, u8"string", u8"string", u8""));
clamped_float_option = options.add_option(CLAP::option::Option(std::nullopt, u8"clamped-float", u8"float", u8""));
novalue_option = options.add_option(CLAP::option::Option(u8"b", std::nullopt, std::nullopt, u8""));
// Add variables