-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.37 KB
/
lesson-02.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: 'lambdas_tuples_auto'
on:
push:
paths:
- 'ip-filter/**'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./ip-filter
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: sudo apt-get update && sudo apt-get install libgtest-dev -y
- run: cmake . -DPATCH_VERSION=${{ github.run_number }} -DWITH_GTEST=ON
- run: cmake --build .
- run: cmake --build . --target test
- run: cmake --build . --target package
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.run_number }}
release_name: Release ${{ github.run_number }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /home/runner/work/otus/otus/ip-filter/ip_filter-0.0.${{ github.run_number }}-Linux.deb
asset_name: ip_filter-0.0.${{ github.run_number }}-Linux.deb
asset_content_type: application/vnd.debian.binary-package
allow_Updates: true