Skip to content

Commit

Permalink
ci: Generate Python package
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviermartin committed Feb 21, 2024
1 parent fbd6542 commit 6b5f6fb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,20 @@ 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
steps:
- uses: actions/checkout@v2
- run: sudo apt install -y libbluetooth-dev
- name: Install Python environment
run: sudo apt install -y python3.9-dev python3.9-venv
- run: |
python3.9 -m venv .venv
source .venv/bin/activate
./ci/generate-python-package.sh
- name: Archive Python packages
uses: actions/upload-artifact@v4
with:
name: python-package
path: dist/*
2 changes: 1 addition & 1 deletion ci/generate-python-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6b5f6fb

Please sign in to comment.