Skip to content

Commit 3076cd6

Browse files
committed
debian trixie build
1 parent f6ba2af commit 3076cd6

File tree

7 files changed

+68
-32
lines changed

7 files changed

+68
-32
lines changed

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 53 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
##### coverage #####
1717
coverage:
1818
runs-on: ubuntu-latest
19-
container: debian:bookworm
19+
container: debian:trixie
2020
name: coverage - measure
2121
env:
2222
linux_distro: debian
23-
linux_release: bookworm
23+
linux_release: trixie
2424
steps:
2525
- name: add cppfw deb repo
2626
uses: myci-actions/add-deb-repo@main
@@ -29,12 +29,12 @@ jobs:
2929
repo-name: cppfw
3030
keys-asc: https://gagis.hopto.org/repo/cppfw/pubkey.gpg
3131
install: myci locales git pipx
32-
- name: add llvm repo (for clang-format)
33-
uses: myci-actions/add-deb-repo@main
34-
with:
35-
repo: deb http://apt.llvm.org/${{ env.linux_release }} llvm-toolchain-${{ env.linux_release }} main
36-
repo-name: llvm
37-
keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key
32+
# - name: add llvm repo (for clang-format)
33+
# uses: myci-actions/add-deb-repo@main
34+
# with:
35+
# repo: deb http://apt.llvm.org/${{ env.linux_release }} llvm-toolchain-${{ env.linux_release }} main
36+
# repo-name: llvm
37+
# keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key
3838
- name: git clone
3939
uses: myci-actions/checkout@main
4040
- name: prepare debian package
@@ -87,9 +87,9 @@ jobs:
8787
fail-fast: false
8888
matrix:
8989
include:
90-
- {os: debian, codename: bookworm, image_owner: , package_type: deb}
91-
- {os: debian, codename: bookworm, image_owner: arm32v7/, package_type: deb, labels: [ubuntu-24.04-arm]}
92-
- {os: debian, codename: bookworm, image_owner: arm64v8/, package_type: deb, labels: [ubuntu-24.04-arm]}
90+
- {os: debian, codename: trixie, image_owner: , package_type: deb}
91+
- {os: debian, codename: trixie, image_owner: arm32v7/, package_type: deb, labels: [ubuntu-24.04-arm]}
92+
- {os: debian, codename: trixie, image_owner: arm64v8/, package_type: deb, labels: [ubuntu-24.04-arm]}
9393
runs-on: ${{ (matrix.labels == '' && 'ubuntu-latest') || matrix.labels }}
9494
container: ${{ matrix.image_owner }}${{ matrix.os }}:${{ matrix.codename }}
9595
name: sanitizer - ${{ matrix.image_owner }}${{ matrix.os }}:${{ matrix.codename }}
@@ -101,12 +101,12 @@ jobs:
101101
repo-name: cppfw
102102
keys-asc: https://gagis.hopto.org/repo/cppfw/pubkey.gpg
103103
install: myci locales git
104-
- name: add llvm repo (for clang-format)
105-
uses: myci-actions/add-deb-repo@main
106-
with:
107-
repo: deb https://apt.llvm.org/${{ matrix.codename }} llvm-toolchain-${{ matrix.codename }} main
108-
repo-name: llvm
109-
keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key
104+
# - name: add llvm repo (for clang-format)
105+
# uses: myci-actions/add-deb-repo@main
106+
# with:
107+
# repo: deb https://apt.llvm.org/${{ matrix.codename }} llvm-toolchain-${{ matrix.codename }} main
108+
# repo-name: llvm
109+
# keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key
110110
- name: install ci tools
111111
run: |
112112
apt --quiet install --assume-yes devscripts equivs
@@ -125,6 +125,32 @@ jobs:
125125
run: make config=asan
126126
- name: test
127127
run: make config=asan test
128+
##### lint #####
129+
lint:
130+
runs-on: ubuntu-latest
131+
container: debian:trixie
132+
name: lint
133+
env:
134+
linux_distro: debian
135+
linux_release: trixie
136+
steps:
137+
- name: add cppfw deb repo
138+
uses: myci-actions/add-deb-repo@main
139+
with:
140+
repo: deb https://gagis.hopto.org/repo/cppfw/${{ env.linux_distro }} ${{ env.linux_release }} main
141+
repo-name: cppfw
142+
keys-asc: https://gagis.hopto.org/repo/cppfw/pubkey.gpg
143+
install: myci locales git devscripts equivs
144+
- name: git clone
145+
uses: myci-actions/checkout@main
146+
- name: prepare debian package
147+
run: myci-deb-prepare.sh
148+
- name: install deps
149+
run: myci-deb-install-build-deps.sh
150+
- name: build
151+
run: make config=lint
152+
- name: test
153+
run: make config=lint test
128154
##### deb linux #####
129155
deb_linux:
130156
strategy:
@@ -142,6 +168,10 @@ jobs:
142168
# - {os: debian, codename: bookworm, image_owner: i386/, package_type: deb, labels: [i386,docker]}
143169
- {os: debian, codename: bookworm, image_owner: arm32v7/, package_type: deb, labels: [ubuntu-24.04-arm]}
144170
- {os: debian, codename: bookworm, image_owner: arm64v8/, package_type: deb, labels: [ubuntu-24.04-arm]}
171+
- {os: debian, codename: trixie, image_owner: , package_type: deb}
172+
# - {os: debian, codename: trixie, image_owner: i386/, package_type: deb, labels: [i386,docker]}
173+
- {os: debian, codename: trixie, image_owner: arm32v7/, package_type: deb, labels: [ubuntu-24.04-arm]}
174+
- {os: debian, codename: trixie, image_owner: arm64v8/, package_type: deb, labels: [ubuntu-24.04-arm]}
145175
# - {os: ubuntu, codename: focal, image_owner: , package_type: deb}
146176
# - {os: ubuntu, codename: jammy, image_owner: , package_type: deb}
147177
- {os: ubuntu, codename: noble, image_owner: , package_type: deb}
@@ -163,12 +193,12 @@ jobs:
163193
repo-name: cppfw
164194
keys-asc: https://gagis.hopto.org/repo/cppfw/pubkey.gpg
165195
install: myci locales git devscripts equivs
166-
- name: add llvm repo (for clang-format)
167-
uses: myci-actions/add-deb-repo@main
168-
with:
169-
repo: deb https://apt.llvm.org/${{ matrix.codename }} llvm-toolchain-${{ matrix.codename }} main
170-
repo-name: llvm
171-
keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key
196+
# - name: add llvm repo (for clang-format)
197+
# uses: myci-actions/add-deb-repo@main
198+
# with:
199+
# repo: deb https://apt.llvm.org/${{ matrix.codename }} llvm-toolchain-${{ matrix.codename }} main
200+
# repo-name: llvm
201+
# keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key
172202
- name: git clone
173203
uses: myci-actions/checkout@main
174204
- name: set PACKAGE_VERSION

β€Ž.vscode/tasks.jsonβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"group": "build"
1111
},
1212
{
13-
"label": "build-dbg",
13+
"label": "build-dev",
1414
"type": "shell",
15-
"command": "make config=dbg",
15+
"command": "make config=dev",
1616
"group": "build"
1717
},
1818
{
@@ -34,15 +34,15 @@
3434
"group": "build"
3535
},
3636
{
37-
"label": "run-app-dbg",
37+
"label": "run-app-dev",
3838
"type": "shell",
39-
"command": "make run-app config=dbg",
39+
"command": "make run-app config=dev",
4040
"group": "build"
4141
},
4242
{
43-
"label": "test-dbg",
43+
"label": "test-dev",
4444
"type": "shell",
45-
"command": "make config=dbg test",
45+
"command": "make config=dev test",
4646
"group": "build"
4747
},
4848
]

β€Žbuild/conan/test_package/example.cppβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include <urlmodel/url.hpp>
22

3+
#include <iostream>
4+
35
int main(int argc, const char** argv){
46
urlmodel::url url;
57

β€Žconfig/base/base.mkβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ this_cxxflags += -g
1010

1111
this_ldflags += -fPIC
1212
this_ldlibs += -lstdc++
13+
14+
this_no_format_test := true

β€Žconfig/lint.mkβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include $(config_dir)dev.mk
2+
3+
this_lint_cmd = $(prorab_lint_cmd_clang_tidy)
4+
this_no_format_test := false

β€Žconfig/rel.mkβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ include $(config_dir)base/base.mk
22

33
this_cxxflags += -O3
44

5-
this_lint_cmd = $(prorab_lint_cmd_clang_tidy)
6-
75
# WORKAROUND: on ubuntu jammy dpkg-buildpackage passes -ffat-lto-objects compilation flag
86
# which is not supported by clang and clang-tidy complains about it:
97
# error: optimization flag '-ffat-lto-objects' is not supported [clang-diagnostic-ignored-optimization-argument]

β€Žtool-configsβ€Ž

0 commit comments

Comments
Β (0)