From b8845dfa4d75cc1cd1be4bb72e422c25a9bdb591 Mon Sep 17 00:00:00 2001 From: Donghoon Park Date: Sun, 15 Dec 2024 04:06:19 +0000 Subject: [PATCH] divied Build and Test as different ci job --- .github/workflows/ci.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a20ae4d..f82939f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,10 +16,15 @@ jobs: - name: build run: | cmake --build build --config Debug - - name: test - run: | - cd build - ctest + - name: Upload Build Artifact + uses: actions/upload-artifact@v3 + with: + name: build + path: build/ + exclude: | + build/**/*.o + build/**/*.internal + build/**/*.txt - name: Compile Arduino examples run: | pushd build @@ -27,3 +32,11 @@ jobs: popd export PATH="build/bin:$PATH" ./examples/arduino/compile-examples.sh + Test: + runs-on: ubuntu-latest + steps: + - name: test + run: | + cd build + ctest +