Add github actions workflows #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |