Skip to content

Commit 14c2111

Browse files
committed
CI: Rewrite release pipelines to avoid premature publishing of artifacts
Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>
1 parent d68910b commit 14c2111

6 files changed

Lines changed: 428 additions & 203 deletions

File tree

.github/workflows/build-ci.yml

Lines changed: 2 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -13,114 +13,5 @@ on:
1313
branches: [ master ]
1414

1515
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

.github/workflows/create-release.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.github/workflows/cross-plaform-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ name: Cross Platform Build
88

99
on:
1010
workflow_dispatch:
11+
workflow_call:
1112

1213
jobs:
1314
cross_platform_build:
@@ -22,7 +23,7 @@ jobs:
2223
with:
2324
submodules: recursive
2425
- name: Configure
25-
run: cmake -B build -DCMAKE_BUILD_TYPE=Debug .
26+
run: cmake -B build -DCMAKE_BUILD_TYPE=Debug -DOPT_OSDP_LIB_ONLY=on .
2627
- name: Build
2728
run: cmake --build build --parallel 8
2829
- name: Run unit-tests

.github/workflows/publish-platformio.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)