divied Build and Test as different ci job

This commit is contained in:
Donghoon Park 2024-12-15 04:06:19 +00:00
parent 09f1f9dd0d
commit b8845dfa4d

View File

@ -16,10 +16,15 @@ jobs:
- name: build - name: build
run: | run: |
cmake --build build --config Debug cmake --build build --config Debug
- name: test - name: Upload Build Artifact
run: | uses: actions/upload-artifact@v3
cd build with:
ctest name: build
path: build/
exclude: |
build/**/*.o
build/**/*.internal
build/**/*.txt
- name: Compile Arduino examples - name: Compile Arduino examples
run: | run: |
pushd build pushd build
@ -27,3 +32,11 @@ jobs:
popd popd
export PATH="build/bin:$PATH" export PATH="build/bin:$PATH"
./examples/arduino/compile-examples.sh ./examples/arduino/compile-examples.sh
Test:
runs-on: ubuntu-latest
steps:
- name: test
run: |
cd build
ctest