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
|
2020-04-10 14:43:17 +00:00
|
|
|
|
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
|
2020-04-10 14:43:17 +00:00
|
|
|
with:
|
2022-05-10 10:36:17 +00:00
|
|
|
name: ${{ env.artifactPath }}
|
|
|
|
path: ${{ env.artifactPath }}
|