Skip to content

Commit cbb3061

Browse files
committed
actions UPDATE deb package build action
1 parent f6a5592 commit cbb3061

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ jobs:
2727
# no expect because stdout seems to be redirected
2828
packages: "libcmocka-dev shunit2",
2929
snaps: "",
30-
make-prepend: "",
31-
make-target: ""
30+
build-cmd: "make"
3231
}
3332
- {
3433
name: "Release, clang",
@@ -39,8 +38,7 @@ jobs:
3938
packager: "sudo apt-get",
4039
packages: "libcmocka-dev shunit2",
4140
snaps: "",
42-
make-prepend: "",
43-
make-target: ""
41+
build-cmd: "make"
4442
}
4543
- {
4644
name: "Debug, gcc",
@@ -51,8 +49,7 @@ jobs:
5149
packager: "sudo apt-get",
5250
packages: "libcmocka-dev valgrind shunit2",
5351
snaps: "",
54-
make-prepend: "",
55-
make-target: ""
52+
build-cmd: "make"
5653
}
5754
- {
5855
name: "Debug, clang",
@@ -64,8 +61,7 @@ jobs:
6461
# no valgrind because it does not support DWARF5 yet generated by clang 14
6562
packages: "libcmocka-dev shunit2",
6663
snaps: "",
67-
make-prepend: "",
68-
make-target: ""
64+
build-cmd: "make"
6965
}
7066
- {
7167
name: "Release, macOS 11, clang",
@@ -76,8 +72,7 @@ jobs:
7672
packager: "brew",
7773
packages: "cmocka shunit2",
7874
snaps: "",
79-
make-prepend: "",
80-
make-target: ""
75+
build-cmd: "make"
8176
}
8277
- {
8378
name: "ASAN and UBSAN",
@@ -88,8 +83,7 @@ jobs:
8883
packager: "sudo apt-get",
8984
packages: "libcmocka-dev",
9085
snaps: "",
91-
make-prepend: "",
92-
make-target: ""
86+
build-cmd: "make"
9387
}
9488
- {
9589
name: "ABI Check",
@@ -100,12 +94,22 @@ jobs:
10094
packager: "sudo apt-get",
10195
packages: "libcmocka-dev abi-dumper abi-compliance-checker",
10296
snaps: "core universal-ctags",
103-
make-prepend: "",
104-
make-target: "abi-check"
97+
build-cmd: "make abi-check"
98+
}
99+
- {
100+
name: "DEB Package",
101+
os: "ubuntu-22.04",
102+
build-type: "Release",
103+
cc: "gcc",
104+
options: "",
105+
packager: "sudo apt-get",
106+
packages: "python3-pip",
107+
snaps: "",
108+
build-cmd: "pip install apkg && apkg system-setup && apkg build && apkg install"
105109
}
106110

107111
steps:
108-
- uses: actions/checkout@v3
112+
- uses: actions/checkout@main
109113

110114
- name: Deps-packages
111115
shell: bash
@@ -138,14 +142,15 @@ jobs:
138142
mkdir build
139143
cd build
140144
CC=${{ matrix.config.cc }} cmake -DCMAKE_BUILD_TYPE=${{ matrix.config.build-type }} ${{ matrix.config.options }} ..
145+
if: ${{ matrix.config.name != 'DEB Package' }}
141146

142147
- name: Build
143148
shell: bash
144149
working-directory: ${{ github.workspace }}/build
145150
run: |
146151
export LC_ALL=C.UTF-8
147152
export PATH=/snap/bin:${{ github.workspace }}/coverity-tools/bin:$PATH
148-
${{ matrix.config.make-prepend }} make ${{ matrix.config.make-target }}
153+
${{ matrix.config.build-cmd }}
149154
150155
- name: Test
151156
shell: bash

0 commit comments

Comments
 (0)