divied Build and Test as different ci job
This commit is contained in:
parent
09f1f9dd0d
commit
b8845dfa4d
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user