diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 50235ae1..654b997e 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -21,3 +21,25 @@ jobs: - 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-package: + 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 }} + - name: Show Python version + run: python3 --version + - run: | + ./ci/generate-python-package.sh + - name: Archive Python packages + uses: actions/upload-artifact@v4 + with: + name: python-package + path: dist/* diff --git a/ci/generate-python-package.sh b/ci/generate-python-package.sh index 217f8625..0f2b9fbd 100755 --- a/ci/generate-python-package.sh +++ b/ci/generate-python-package.sh @@ -46,7 +46,7 @@ python setup.py sdist # Move generated artifact to project root path ls dist/* -mv dist/* ${ROOT_PATH} +mv dist ${ROOT_PATH} popd