Skip to content

Commit

Permalink
fix: github action error
Browse files Browse the repository at this point in the history
  • Loading branch information
molingyu committed Sep 4, 2024
1 parent cf004e1 commit 0c00a08
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
working-directory: ${{github.workspace}}
run: cmake --build ./build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
Expand All @@ -46,7 +47,8 @@ jobs:
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_COMPILER=clang++-14 -DCMAKE_C_COMPILER=clang

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
working-directory: ${{github.workspace}}
run: cmake --build ./build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
Expand All @@ -67,7 +69,8 @@ jobs:
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
working-directory: ${{github.workspace}}
run: cmake --build ./build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
Expand All @@ -90,12 +93,11 @@ jobs:
arch: x64

- name: Configure CMake
# enkiTS is failing ASAN on windows
# run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBOX2D_SAMPLES=OFF -DBOX2D_SANITIZE=ON -DBUILD_SHARED_LIBS=OFF
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
working-directory: ${{github.workspace}}
run: cmake --build ./build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
Expand Down
8 changes: 4 additions & 4 deletions src/word2number.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,13 @@ struct number2wordf_lang_method_table
char* (*method)(double);
};

static struct word2number_lang_method_table word2number_table[];
extern struct word2number_lang_method_table word2number_table[];

static struct number2word_lang_method_table number2word_table[];
extern struct number2word_lang_method_table number2word_table[];

static struct word2numberf_lang_method_table word2numberf_table[];
extern struct word2numberf_lang_method_table word2numberf_table[];

static struct number2wordf_lang_method_table number2wordf_table[];
extern struct number2wordf_lang_method_table number2wordf_table[];

long word2number(char* word, char* input_lang);

Expand Down

0 comments on commit 0c00a08

Please sign in to comment.