From 07b809b1eb58d49bfa2153eaf6c1df0f9d9c1740 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Wed, 11 Jan 2023 21:57:08 +0700 Subject: [PATCH] use `test_c` and `test_cpp` with check for using clang in the use action with specified compiler job --- .github/workflows/test.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6ede197..5499ec1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -67,16 +67,15 @@ jobs: uses: ./ with: source-dir: test + targets: test_c test_cpp c-compiler: clang cxx-compiler: clang++ - args: | - -D BUILD_C=ON - -D BUILD_CXX=ON + args: -D CHECK_USING_CLANG=ON - name: Run build result run: | - {{ matrix.os == 'windows-latest' && 'build\Debug\hello_world.exe' || 'build/hello_world' }} - {{ matrix.os == 'windows-latest' && 'build\Debug\hello_world_c.exe' || 'build/hello_world_c' }} + ${{ matrix.os == 'windows-latest' && 'build\Debug\test_c.exe' || 'build/test_c' }} + ${{ matrix.os == 'windows-latest' && 'build\Debug\test_cpp.exe' || 'build/test_cpp' }} use-action-with-specified-generator: runs-on: ${{ matrix.os }}