-
Notifications
You must be signed in to change notification settings - Fork 161
40 lines (37 loc) · 1.26 KB
/
github-actions.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: 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-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/*