forked from apache/qpid-proton
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.31 KB
/
build_release.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
name: Build Debian package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container: python:3.12-bookworm
steps:
- uses: actions/checkout@v3
- name: Create Build and Install directories
run: mkdir -p build out
shell: bash
- name: Install Linux dependencies
run: apt update && apt install -y build-essential cmake pkg-config ninja-build swig ca-certificates libssl-dev libsasl2-dev libwebsockets-dev
- name: cmake configure
working-directory: build
run: cmake ../ "-DCMAKE_INSTALL_PREFIX=install"
shell: bash
- name: cmake build/install
run: cmake --build "build" -t install
shell: bash
- name: Copy DEBIAN folder
run: cp -r ci/DEBIAN build/install/
- name: Build .deb
run: dpkg-deb --build build/install ${OUTPUT_FILENAME} out/package.deb
- name: Upload Install
uses: actions/upload-artifact@v3
with:
name: libqpid-proton11-deb12.deb
path: out/package.deb
- name: Build wheel
run: pip wheel build/python
- name: copy file
run: cp python_qpid_proton*.whl out/package.whl
- name: Upload wheel
uses: actions/upload-artifact@v3
with:
name: python-qpid-proton-deb12.whl
path: out/package.whl