Skip to content

ci: Generate Python package #59

ci: Generate Python package

ci: Generate Python package #59

name: gattlib
on: [push]
jobs:
build-debug:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt install libbluetooth-dev
- run: mkdir build && pushd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && make
build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt install libbluetooth-dev doxygen
- run: mkdir build && pushd build && cmake -DCMAKE_BUILD_TYPE=Release -DGATTLIB_BUILD_DOCS=ON .. && make
build-release-force-dbus:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt install libbluetooth-dev
- run: mkdir build && pushd build && cmake -DGATTLIB_FORCE_DBUS=TRUE -DCMAKE_BUILD_TYPE=Release .. && make
generate-python-source-packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt install -y libbluetooth-dev
- run: ./ci/generate-python-package.sh
- name: Archive Python packages
uses: actions/upload-artifact@v4
with:
name: python-package
path: dist/*.tar.gz
generate-python-binary-packages:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- run: sudo apt install -y libbluetooth-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: ./ci/generate-python-package.sh
env:
SKIP_SOURCE_PACKAGE: 1
- name: Archive Python packages
uses: actions/upload-artifact@v4
with:
name: python-package
path: dist/*
# publish-python-packages:
# needs: generate-python-packages
# runs-on: ubuntu-latest
# steps:
# - uses: actions/download-artifact@master
# with:
# name: python-package
# path: dist/*
# - run: ls dist/*