|
13 | 13 | branches: [ master ] |
14 | 14 |
|
15 | 15 | jobs: |
16 | | - CmakeBuild: |
17 | | - runs-on: ubuntu-latest |
18 | | - steps: |
19 | | - - uses: actions/checkout@v5 |
20 | | - with: |
21 | | - submodules: recursive |
22 | | - - name: Configure |
23 | | - run: cmake -DCMAKE_BUILD_TYPE=Debug . |
24 | | - - name: Build |
25 | | - run: cmake --build . --parallel 7 --target all --target cpp_cp_sample --target cpp_pd_sample |
26 | | - - name: Package |
27 | | - run: cmake --build . --target package --target package_source |
28 | | - - uses: actions/upload-artifact@v6 |
29 | | - with: |
30 | | - name: libosdp-ubuntu-latest-binaries.zip |
31 | | - path: artifacts/ |
32 | | - |
33 | | - MakeBuild: |
34 | | - runs-on: ubuntu-latest |
35 | | - steps: |
36 | | - - uses: actions/checkout@v5 |
37 | | - with: |
38 | | - submodules: recursive |
39 | | - - name: configure |
40 | | - run: | |
41 | | - ./configure.sh |
42 | | - - name: make |
43 | | - run: make V=1 |
44 | | - - name: make check |
45 | | - run: make V=1 check |
46 | | - |
47 | | - DocBuild: |
48 | | - runs-on: ubuntu-latest |
49 | | - steps: |
50 | | - - uses: actions/checkout@v5 |
51 | | - with: |
52 | | - submodules: recursive |
53 | | - - name: Install dependencies |
54 | | - run: | |
55 | | - sudo apt update |
56 | | - sudo apt install -y doxygen |
57 | | - pip3 install -r doc/requirements.txt |
58 | | - - name: Configure |
59 | | - run: cmake -DCMAKE_BUILD_TYPE=Debug . |
60 | | - - name: Build docs |
61 | | - run: cmake --build . --parallel 7 --target html_docs |
62 | | - |
63 | | - Test: |
64 | | - runs-on: ubuntu-latest |
65 | | - steps: |
66 | | - - uses: actions/checkout@v5 |
67 | | - with: |
68 | | - submodules: recursive |
69 | | - - name: Configure |
70 | | - run: cmake -DCMAKE_BUILD_TYPE=Debug . |
71 | | - - name: Run unit-tests |
72 | | - run: cmake --build . --parallel 7 --target check |
73 | | - |
74 | | - CheckPatch: |
75 | | - runs-on: ubuntu-latest |
76 | | - steps: |
77 | | - - uses: actions/checkout@v5 |
78 | | - with: |
79 | | - submodules: recursive |
80 | | - - name: ClangFormatCheck |
81 | | - run: | |
82 | | - ./scripts/clang-format-check.sh |
83 | | -
|
84 | | - Python: |
85 | | - name: Python |
86 | | - runs-on: ubuntu-latest |
87 | | - steps: |
88 | | - - name: Checkout sources |
89 | | - uses: actions/checkout@v5 |
90 | | - with: |
91 | | - submodules: recursive |
92 | | - - name: Install pypa/build |
93 | | - run: python3 -m pip install build --user |
94 | | - - name: Build a binary wheel and a source tarball |
95 | | - run: python3 -m build python |
96 | | - - name: Store the distribution packages |
97 | | - uses: actions/upload-artifact@v6 |
98 | | - with: |
99 | | - name: python-package-distributions |
100 | | - path: python/dist/ |
101 | | - |
102 | | - PlatformIO: |
103 | | - runs-on: ubuntu-latest |
104 | | - strategy: |
105 | | - matrix: |
106 | | - examples: |
107 | | - - examples/platformio/cp.ino |
108 | | - - examples/platformio/pd.ino |
109 | | - steps: |
110 | | - - uses: actions/checkout@v5 |
111 | | - with: |
112 | | - submodules: recursive |
113 | | - - uses: actions/cache@v4 |
114 | | - with: |
115 | | - path: | |
116 | | - ~/.cache/pip |
117 | | - ~/.platformio/.cache |
118 | | - key: ${{ runner.os }}-pio |
119 | | - - uses: actions/setup-python@v6 |
120 | | - with: |
121 | | - python-version: '3.11' |
122 | | - - name: Install PlatformIO Core |
123 | | - run: pip install --upgrade platformio |
124 | | - |
125 | | - - name: Build PlatformIO examples |
126 | | - run: pio ci --verbose --lib . --board=megaatmega2560 ${{ matrix.examples }} |
| 16 | + ci: |
| 17 | + uses: ./.github/workflows/reusable-ci.yml |
0 commit comments