Skip to content

Commit 14d997a

Browse files
authored
Merge pull request #1 from bas524/qt6
Rpm/Deb, Qt6 and FileManager integrations
2 parents 5939265 + e4dd9d3 commit 14d997a

29 files changed

+783
-101
lines changed

.github/workflows/action-cpp.yml

Lines changed: 299 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,299 @@
1+
name: build and cpack
2+
on: [ push, pull_request ]
3+
jobs:
4+
ubuntu-22-04:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
#
8+
# matrix for containers
9+
#
10+
matrix:
11+
container:
12+
- ubuntu:22.04
13+
14+
container:
15+
image: ${{ matrix.container }}
16+
17+
steps:
18+
- name: Get current date
19+
id: date
20+
run: echo "date=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT
21+
- name: Get commit sha
22+
id: git_sha
23+
run: echo "git_sha=$(echo $GITHUB_SHA)" >> $GITHUB_OUTPUT
24+
- uses: actions/checkout@v3
25+
# install dependencies
26+
- name: devel-pkgs
27+
run: apt-get update -y && apt-get install -yq binutils python3-nautilus make cmake qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools gcc g++ lsb-release
28+
# build project
29+
- name: mkdir
30+
run: ls -l && mkdir cmake-build-release
31+
- name: cmake cmake-build-release
32+
run: cmake -DCOMMITTER_DATE="${{ steps.date.outputs.date }}" -DCOMMITTER_FULLSHA="${{ steps.git_sha.outputs.git_sha }}" -DCOMMITTER_SHORTSHA="$(echo ${{ steps.git_sha.outputs.git_sha }} | cut -c1-7)" -DCMAKE_BUILD_TYPE=Release -Bcmake-build-release -H.
33+
- name: cmake make
34+
run: cmake --build cmake-build-release/ --target all
35+
env:
36+
MAKEFLAGS: "-j2"
37+
- name: cpack
38+
run: cd cmake-build-release && cpack -G DEB && cd ..
39+
# upload artifact
40+
- uses: mad9000/actions-find-and-replace-string@3
41+
id: container
42+
with:
43+
source: ${{ matrix.container }}
44+
find: ':' # we want to remove : from container name
45+
replace: '-' # and replace it with -
46+
47+
- name: Upload Qldd binary
48+
uses: actions/upload-artifact@v3
49+
with:
50+
name: ${{ format('Qldd-1.1.1.{0}', steps.container.outputs.value) }}
51+
path: cmake-build-release/Qldd-1.1.1-x86_64.???
52+
ubuntu-20-04:
53+
runs-on: ubuntu-latest
54+
strategy:
55+
#
56+
# matrix for containers
57+
#
58+
matrix:
59+
container:
60+
- ubuntu:20.04
61+
62+
container:
63+
image: ${{ matrix.container }}
64+
65+
steps:
66+
- name: Get current date
67+
id: date
68+
run: echo "date=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT
69+
- name: Get commit sha
70+
id: git_sha
71+
run: echo "git_sha=$(echo $GITHUB_SHA)" >> $GITHUB_OUTPUT
72+
- uses: actions/checkout@v3
73+
# install dependencies
74+
- name: devel-pkgs
75+
run: |
76+
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections &&
77+
apt-get update -y && apt-get install -yq python-nautilus binutils make cmake qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools gcc g++ lsb-release
78+
# build project
79+
- name: mkdir
80+
run: mkdir cmake-build-release
81+
- name: cmake cmake-build-release
82+
run: cmake -DCOMMITTER_DATE="${{ steps.date.outputs.date }}" -DCOMMITTER_FULLSHA="${{ steps.git_sha.outputs.git_sha }}" -DCOMMITTER_SHORTSHA="$(echo ${{ steps.git_sha.outputs.git_sha }} | cut -c1-7)" -DCMAKE_BUILD_TYPE=Release -Bcmake-build-release -H.
83+
- name: cmake make
84+
run: cmake --build cmake-build-release/ --target all
85+
env:
86+
MAKEFLAGS: "-j2"
87+
- name: cpack
88+
run: cd cmake-build-release && cpack -G DEB && cd ..
89+
# upload artifact
90+
- uses: mad9000/actions-find-and-replace-string@3
91+
id: container
92+
with:
93+
source: ${{ matrix.container }}
94+
find: ':' # we want to remove : from container name
95+
replace: '-' # and replace it with -
96+
97+
- name: Upload Qldd binary
98+
uses: actions/upload-artifact@v3
99+
with:
100+
name: ${{ format('Qldd-1.1.1.{0}', steps.container.outputs.value) }}
101+
path: cmake-build-release/Qldd-1.1.1-x86_64.???
102+
debian-bullseye:
103+
runs-on: ubuntu-latest
104+
strategy:
105+
#
106+
# matrix for containers
107+
#
108+
matrix:
109+
container:
110+
- debian:bullseye
111+
112+
container:
113+
image: ${{ matrix.container }}
114+
115+
steps:
116+
- name: Get current date
117+
id: date
118+
run: echo "date=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT
119+
- name: Get commit sha
120+
id: git_sha
121+
run: echo "git_sha=$(echo $GITHUB_SHA)" >> $GITHUB_OUTPUT
122+
- uses: actions/checkout@v3
123+
# install dependencies
124+
- name: devel-pkgs
125+
run: apt-get update -y && apt-get install -yq binutils python3-nautilus make cmake qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools gcc g++ lsb-release
126+
# build project
127+
- name: mkdir
128+
run: mkdir cmake-build-release
129+
- name: cmake cmake-build-release
130+
run: cmake -DCOMMITTER_DATE="${{ steps.date.outputs.date }}" -DCOMMITTER_FULLSHA="${{ steps.git_sha.outputs.git_sha }}" -DCOMMITTER_SHORTSHA="$(echo ${{ steps.git_sha.outputs.git_sha }} | cut -c1-7)" -DCMAKE_BUILD_TYPE=Release -Bcmake-build-release -H.
131+
- name: cmake make
132+
run: cmake --build cmake-build-release/ --target all
133+
env:
134+
MAKEFLAGS: "-j2"
135+
- name: cpack
136+
run: cd cmake-build-release && cpack -G DEB && cd ..
137+
# upload artifact
138+
- uses: mad9000/actions-find-and-replace-string@3
139+
id: container
140+
with:
141+
source: ${{ matrix.container }}
142+
find: ':' # we want to remove : from container name
143+
replace: '-' # and replace it with -
144+
145+
- name: Upload Qldd binary
146+
uses: actions/upload-artifact@v3
147+
with:
148+
name: ${{ format('Qldd-1.1.1.{0}', steps.container.outputs.value) }}
149+
path: cmake-build-release/Qldd-1.1.1-x86_64.???
150+
debian-buster:
151+
runs-on: ubuntu-latest
152+
strategy:
153+
#
154+
# matrix for containers
155+
#
156+
matrix:
157+
container:
158+
- debian:buster
159+
160+
container:
161+
image: ${{ matrix.container }}
162+
163+
steps:
164+
- name: Get current date
165+
id: date
166+
run: echo "date=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT
167+
- name: Get commit sha
168+
id: git_sha
169+
run: echo "git_sha=$(echo $GITHUB_SHA)" >> $GITHUB_OUTPUT
170+
- uses: actions/checkout@v3
171+
# install dependencies
172+
- name: devel-pkgs
173+
run: apt-get update -y && apt-get install -yq binutils python-nautilus make cmake qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools gcc g++ lsb-release
174+
# build project
175+
- name: mkdir
176+
run: mkdir cmake-build-release
177+
- name: cmake cmake-build-release
178+
run: cmake -DCOMMITTER_DATE="${{ steps.date.outputs.date }}" -DCOMMITTER_FULLSHA="${{ steps.git_sha.outputs.git_sha }}" -DCOMMITTER_SHORTSHA="$(echo ${{ steps.git_sha.outputs.git_sha }} | cut -c1-7)" -DCMAKE_BUILD_TYPE=Release -Bcmake-build-release -H.
179+
- name: cmake make
180+
run: cmake --build cmake-build-release/ --target all
181+
env:
182+
MAKEFLAGS: "-j2"
183+
- name: cpack
184+
run: cd cmake-build-release && cpack -G DEB && cd ..
185+
# upload artifact
186+
- uses: mad9000/actions-find-and-replace-string@3
187+
id: container
188+
with:
189+
source: ${{ matrix.container }}
190+
find: ':' # we want to remove : from container name
191+
replace: '-' # and replace it with -
192+
193+
- name: Upload Qldd binary
194+
uses: actions/upload-artifact@v3
195+
with:
196+
name: ${{ format('Qldd-1.1.1.{0}', steps.container.outputs.value) }}
197+
path: cmake-build-release/Qldd-1.1.1-x86_64.???
198+
centos-latest:
199+
runs-on: ubuntu-latest
200+
strategy:
201+
#
202+
# matrix for containers
203+
#
204+
matrix:
205+
container:
206+
- centos:latest
207+
208+
container:
209+
image: ${{ matrix.container }}
210+
211+
steps:
212+
- name: Get current date
213+
id: date
214+
run: echo "date=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT
215+
- name: Get commit sha
216+
id: git_sha
217+
run: echo "git_sha=$(echo $GITHUB_SHA)" >> $GITHUB_OUTPUT
218+
- uses: actions/checkout@v3
219+
# install dependencies
220+
- name: devel-pkgs
221+
run: |
222+
cd /etc/yum.repos.d/ &&
223+
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* &&
224+
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* &&
225+
cd / &&
226+
yum update -y && yum install -yq epel-next-release &&
227+
yum update -y && yum install -yq binutils python3-nautilus qt5-qtbase-devel qt5-qttools rpm-build redhat-lsb-core
228+
# build project
229+
- name: mkdir
230+
run: mkdir cmake-build-release
231+
- name: cmake cmake-build-release
232+
run: cmake -DCOMMITTER_DATE="${{ steps.date.outputs.date }}" -DCOMMITTER_FULLSHA="${{ steps.git_sha.outputs.git_sha }}" -DCOMMITTER_SHORTSHA="$(echo ${{ steps.git_sha.outputs.git_sha }} | cut -c1-7)" -DCMAKE_BUILD_TYPE=Release -Bcmake-build-release -H.
233+
- name: cmake make
234+
run: cmake --build cmake-build-release/ --target all
235+
env:
236+
MAKEFLAGS: "-j2"
237+
- name: cpack
238+
run: cd cmake-build-release && cpack -G RPM && cd ..
239+
# upload artifact
240+
- uses: mad9000/actions-find-and-replace-string@3
241+
id: container
242+
with:
243+
source: ${{ matrix.container }}
244+
find: ':' # we want to remove : from container name
245+
replace: '-' # and replace it with -
246+
247+
- name: Upload Qldd binary
248+
uses: actions/upload-artifact@v3
249+
with:
250+
name: ${{ format('Qldd-1.1.1.{0}', steps.container.outputs.value) }}
251+
path: cmake-build-release/Qldd-1.1.1-x86_64.???
252+
fedora-latest:
253+
runs-on: ubuntu-latest
254+
strategy:
255+
#
256+
# matrix for containers
257+
#
258+
matrix:
259+
container:
260+
- fedora:latest
261+
262+
container:
263+
image: ${{ matrix.container }}
264+
265+
steps:
266+
- name: Get current date
267+
id: date
268+
run: echo "date=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT
269+
- name: Get commit sha
270+
id: git_sha
271+
run: echo "git_sha=$(echo $GITHUB_SHA)" >> $GITHUB_OUTPUT
272+
- uses: actions/checkout@v3
273+
# install dependencies
274+
- name: devel-pkgs
275+
run: yum update -y && yum install -yq binutils python3-nautilus qt5-qtbase-devel qt5-qttools rpm-build redhat-lsb
276+
# build project
277+
- name: mkdir
278+
run: mkdir cmake-build-release
279+
- name: cmake cmake-build-release
280+
run: cmake -DCOMMITTER_DATE="${{ steps.date.outputs.date }}" -DCOMMITTER_FULLSHA="${{ steps.git_sha.outputs.git_sha }}" -DCOMMITTER_SHORTSHA="$(echo ${{ steps.git_sha.outputs.git_sha }} | cut -c1-7)" -DCMAKE_BUILD_TYPE=Release -Bcmake-build-release -H.
281+
- name: cmake make
282+
run: cmake --build cmake-build-release/ --target all
283+
env:
284+
MAKEFLAGS: "-j2"
285+
- name: cpack
286+
run: cd cmake-build-release && cpack -G RPM && cd ..
287+
# upload artifact
288+
- uses: mad9000/actions-find-and-replace-string@3
289+
id: container
290+
with:
291+
source: ${{ matrix.container }}
292+
find: ':' # we want to remove : from container name
293+
replace: '-' # and replace it with -
294+
295+
- name: Upload Qldd binary
296+
uses: actions/upload-artifact@v3
297+
with:
298+
name: ${{ format('Qldd-1.1.1.{0}', steps.container.outputs.value) }}
299+
path: cmake-build-release/Qldd-1.1.1-x86_64.???

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ qrc_*.cpp
1111
/.idea/
1212
/cmake-build-debug/
1313
/cmake-build-release/
14+
/.DS_Store
15+
/CMakeLists.txt.user
16+
/cmake-build-debug/
17+
/cmake-build-qt-debug/
18+
/cmake-build-qt-relwithdebInfo/
19+
/cmake-build-relwithdebinfo/

0 commit comments

Comments
 (0)