v4l2rtspserver/.github/workflows/ccpp.yml

36 lines
696 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:
2022-12-10 18:07:25 +00:00
- uses: actions/checkout@v3
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 }}
2022-05-14 14:55:19 +00:00
path: ${{ env.artifactPath }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ env.artifactPath }}