v4l2rtspserver/.github/workflows/ccpp.yml

29 lines
533 B
YAML
Raw Normal View History

2019-09-05 16:56:59 +00:00
name: C/C++ CI
on: [push]
jobs:
build:
2022-05-10 13:59:16 +00:00
strategy:
matrix:
buildtype: [Debug, Release]
2019-09-05 16:56:59 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
2022-05-10 10:36:17 +00:00
- name: build
run: |
2022-05-10 13:59:16 +00:00
cmake -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }} .
2022-05-10 10:36:17 +00:00
make
2022-05-10 13:59:16 +00:00
2019-09-05 16:56:59 +00:00
- name: cpack
2022-05-10 10:36:17 +00:00
run: |
cpack
echo "artifactPath=$(ls *.deb)" >> $GITHUB_ENV
2019-09-05 16:56:59 +00:00
2022-05-10 10:36:17 +00:00
- uses: actions/upload-artifact@v3
with:
2022-05-10 10:36:17 +00:00
name: ${{ env.artifactPath }}
path: ${{ env.artifactPath }}