You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
v4l2rtspserver/.github/workflows/ccpp.yml

36 lines
696 B
YAML

name: C/C++ CI
on: [push]
jobs:
build:
strategy:
matrix:
buildtype: [Debug, Release]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build
run: |
cmake -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }} .
make
- name: cpack
run: |
cpack
echo "artifactPath=$(ls *.deb)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v3
with:
name: ${{ env.artifactPath }}
path: ${{ env.artifactPath }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ env.artifactPath }}