aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/cpr/.github/workflows/build-deb.yml
blob: 269b4a6b5b43ba0c929cb6709a9cd3102c706e95 (plain) (blame)
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
name: Build Debian Package
on:
  push:
      tags: [ '[0-9]+.[0-9]+.[0-9]+' ]
  pull_request:

jobs:
  package-ubuntu-latest-amd64:
    runs-on: ubuntu-latest
    steps:
    - name: "Checkout"
      uses: actions/checkout@v3
      with:
        submodules: true
        path: cpr

      # Install packages necessary for building libcpr and package
    - name: "Update package list"
      run: sudo apt update
    - name: "Install cpr dependencies"
      run: sudo apt install -y libssl-dev libcurl4-openssl-dev
    - name: "Install building tools"
      run: sudo apt install -y cmake debmake devscripts debhelper

      # Build package of runtime library
    - name: "Package build of runtime library"
      env: 
        VERSION: ${{ github.ref_name }}
      run: bash cpr/package-build/build-package.sh cpr

    - name: "Upload deb-packages"
      uses: actions/upload-artifact@v3
      with:
        name: artifact-deb
        path: ./*.deb