Skip to content

Commit 0e52609

Browse files
committed
v.2.1.0
V2.1.0 v2.1.0 v2.1.0 v2.1.0 docs v2.1.0 v2.1.0 v2.1.0 workflows docs
1 parent 574f360 commit 0e52609

File tree

13 files changed

+3803
-419
lines changed

13 files changed

+3803
-419
lines changed

.github/workflows/ci-alpine-build.yml

Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ on:
2020
description: "debug builds"
2121
required: true
2222
type: string
23-
23+
script_name:
24+
description: "script name"
25+
required: true
26+
type: string
2427
jobs:
2528
build-alpine:
2629
runs-on: ubuntu-24.04
@@ -44,6 +47,7 @@ jobs:
4447

4548
env:
4649
qbt_build_dir: "qbt-build"
50+
script_name: ${{ inputs.script_name }}
4751

4852
steps:
4953
- name: Checkout ${{ inputs.distinct_id }}
@@ -57,8 +61,8 @@ jobs:
5761
- name: Host - update ${{ inputs.distinct_id }}
5862
run: sudo apt-get update
5963

60-
- name: Host - upgrade ${{ inputs.distinct_id }}
61-
run: sudo apt-get -y upgrade
64+
# - name: Host - upgrade ${{ inputs.distinct_id }}
65+
# run: sudo apt-get -y upgrade
6266

6367
- name: Host - set up qemu-user-static binfmt-support ${{ inputs.distinct_id }}
6468
run: sudo apt install libpipeline1 qemu-user-static binfmt-support
@@ -76,10 +80,10 @@ jobs:
7680
printf '%s\n' "qbt_cross_name=${{ matrix.qbt_cross_name }}" >> env.custom
7781
printf '%s\n' "qbt_patches_url=${{ github.repository }}" >> env.custom
7882
printf '%s\n' "qbt_skip_icu=${set_skip_icu}" >> env.custom
79-
printf '%s\n' "qbt_boost_tag=" >> env.custom
80-
printf '%s\n' "qbt_libtorrent_tag=" >> env.custom
81-
printf '%s\n' "qbt_qt_tag=" >> env.custom
82-
printf '%s\n' "qbt_qbittorrent_tag=" >> env.custom
83+
printf '%s\n' "qbt_boost_tag=${{ matrix.qbt_boost_tag }}" >> env.custom
84+
printf '%s\n' "qbt_libtorrent_tag=${{ matrix.qbt_libtorrent_tag }}" >> env.custom
85+
printf '%s\n' "qbt_qt_tag=${{ matrix.qbt_qt_tag }}" >> env.custom
86+
printf '%s\n' "qbt_qbittorrent_tag=${{ matrix.qbt_qbittorrent_tag }}" >> env.custom
8387
printf '%s\n' "qbt_libtorrent_master_jamfile=" >> env.custom
8488
printf '%s\n' "qbt_workflow_files=${set_workflow_files}" >> env.custom
8589
printf '%s\n' "qbt_workflow_artifacts=" >> env.custom
@@ -99,8 +103,11 @@ jobs:
99103
- name: Docker - apk install bash ${{ inputs.distinct_id }}
100104
run: docker exec -w /root multiarch apk add bash
101105

102-
- name: Docker - Bootstrap ${{ inputs.distinct_id }}
103-
run: docker exec -w /root multiarch bash qbittorrent-nox-static.sh -bs-a
106+
- name: Docker - Bootstrap deps ${{ inputs.distinct_id }}
107+
run: docker exec -w /root multiarch bash ${script_name} bootstrap_deps
108+
109+
- name: Docker - Bootstrap build ${{ inputs.distinct_id }}
110+
run: docker exec -w /root multiarch bash ${script_name} -bs-a
104111

105112
- name: Host - qBittorrent v5 transition ${{ inputs.distinct_id }}
106113
run: |
@@ -109,49 +116,45 @@ jobs:
109116
printf '%s\n' "Found file: \`disable-qt5\`: settings \`disable_qt5=yes\` to yes" >> $GITHUB_STEP_SUMMARY
110117
fi
111118
112-
# - name: Docker - Copy repo patches to build folder ${{ inputs.distinct_id }}
113-
# if: env.disable_qt5 != 'yes'
114-
# run: if [[ -d patches ]]; then docker exec -w /root multiarch cp -r patches/* /root/${{ env.qbt_build_dir }}/patches; fi
115-
116119
- name: Docker - zlib-ng ${{ inputs.distinct_id }}
117120
if: env.disable_qt5 != 'yes'
118-
run: docker exec -w /root multiarch bash qbittorrent-nox-static.sh zlib
121+
run: docker exec -w /root multiarch bash ${script_name} zlib
119122

120123
- name: Docker - iconv ${{ inputs.distinct_id }}
121124
if: env.disable_qt5 != 'yes'
122-
run: docker exec -w /root multiarch bash qbittorrent-nox-static.sh iconv
125+
run: docker exec -w /root multiarch bash ${script_name} iconv
123126

124127
- name: Docker - icu ${{ inputs.distinct_id }}
125128
if: env.disable_qt5 != 'yes'
126-
run: docker exec -w /root multiarch bash qbittorrent-nox-static.sh icu
129+
run: docker exec -w /root multiarch bash ${script_name} icu
127130

128131
- name: Docker - openssl ${{ inputs.distinct_id }}
129132
if: env.disable_qt5 != 'yes'
130-
run: docker exec -w /root multiarch bash qbittorrent-nox-static.sh openssl
133+
run: docker exec -w /root multiarch bash ${script_name} openssl
131134

132135
- name: Docker - boost ${{ inputs.distinct_id }}
133136
if: env.disable_qt5 != 'yes'
134-
run: docker exec -w /root multiarch bash qbittorrent-nox-static.sh boost
137+
run: docker exec -w /root multiarch bash ${script_name} boost
135138

136139
- name: Docker - libtorrent ${{ inputs.distinct_id }}
137140
if: env.disable_qt5 != 'yes'
138-
run: docker exec -w /root multiarch bash qbittorrent-nox-static.sh libtorrent
141+
run: docker exec -w /root multiarch bash ${script_name} libtorrent
139142

140143
- name: Docker - double_conversion ${{ inputs.distinct_id }}
141144
if: matrix.qbt_build_tool == '' && env.disable_qt5 != 'yes'
142-
run: docker exec -w /root multiarch bash qbittorrent-nox-static.sh double_conversion
145+
run: docker exec -w /root multiarch bash ${script_name} double_conversion
143146

144147
- name: Docker - qtbase ${{ inputs.distinct_id }}
145148
if: env.disable_qt5 != 'yes'
146-
run: docker exec -w /root multiarch bash qbittorrent-nox-static.sh qtbase
149+
run: docker exec -w /root multiarch bash ${script_name} qtbase
147150

148151
- name: Docker - qttools ${{ inputs.distinct_id }}
149152
if: env.disable_qt5 != 'yes'
150-
run: docker exec -w /root multiarch bash qbittorrent-nox-static.sh qttools
153+
run: docker exec -w /root multiarch bash ${script_name} qttools
151154

152155
- name: Docker - qbittorrent ${{ inputs.distinct_id }}
153156
if: env.disable_qt5 != 'yes'
154-
run: docker exec -w /root multiarch bash qbittorrent-nox-static.sh qbittorrent
157+
run: docker exec -w /root multiarch bash ${script_name} qbittorrent
155158

156159
- name: Docker - Set release asset name ${{ inputs.distinct_id }}
157160
if: env.disable_qt5 != 'yes'
@@ -168,7 +171,7 @@ jobs:
168171
run: docker exec -w /root/${{ env.qbt_build_dir }}/release_info multiarch bash -c 'mv *.md *.json '/root/${{ env.qbt_build_dir }}/completed''
169172

170173
- name: Host - Upload libtorrent-v${{ matrix.qbt_libtorrent_version }}-qbittorrent-nox and release info artifact ${{ inputs.distinct_id }}
171-
if: env.disable_qt5 != 'yes'
174+
if: success() && env.disable_qt5 != 'yes'
172175
uses: actions/upload-artifact@v4
173176
with:
174177
name: libtorrent-v${{ matrix.qbt_libtorrent_version }}-${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox
@@ -177,8 +180,15 @@ jobs:
177180
!${{ env.qbt_build_dir }}/completed/*.png
178181
179182
- name: Host - Upload cmake graphs artifact ${{ inputs.distinct_id }}
180-
if: matrix.qbt_build_tool == '' && env.disable_qt5 != 'yes'
183+
if: success() && matrix.qbt_build_tool == '' && env.disable_qt5 != 'yes'
181184
uses: actions/upload-artifact@v4
182185
with:
183186
name: "${{ matrix.qbt_cross_name }}-libtorrent-v${{ matrix.qbt_libtorrent_version }}-graphs"
184187
path: "${{ env.qbt_build_dir }}/completed/*.png"
188+
189+
- name: Host - Upload logs on error
190+
if: failure() && env.disable_qt5 != 'yes'
191+
uses: actions/upload-artifact@v4
192+
with:
193+
name: "${{ matrix.qbt_cross_name }}-libtorrent-v${{ matrix.qbt_libtorrent_version }}-logs"
194+
path: "${{ env.qbt_build_dir }}/logs/*"

.github/workflows/ci-checks.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ concurrency:
1111
jobs:
1212
sh-checker:
1313
runs-on: ubuntu-24.04
14+
permissions:
15+
contents: read
1416
steps:
1517
- uses: actions/checkout@v4
1618
with:
@@ -28,6 +30,8 @@ jobs:
2830

2931
zizmor-checker:
3032
runs-on: ubuntu-24.04
33+
permissions:
34+
contents: read
3135
steps:
3236
- uses: actions/checkout@v4
3337
with:
@@ -51,6 +55,8 @@ jobs:
5155
5256
editorconfig-checker:
5357
runs-on: ubuntu-24.04
58+
permissions:
59+
contents: read
5460
steps:
5561
- uses: actions/checkout@v4
5662
with:
@@ -68,4 +74,3 @@ jobs:
6874
printf '%b' "\`\`\`" >> $GITHUB_STEP_SUMMARY
6975
7076
# exit "${exit_code}"
71-

.github/workflows/ci-debian-build.yml

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919
description: "debug builds"
2020
required: true
2121
type: string
22+
script_name:
23+
description: "script name"
24+
required: true
25+
type: string
2226

2327
jobs:
2428
build:
@@ -30,7 +34,7 @@ jobs:
3034
fail-fast: false
3135
matrix:
3236
container_id: [debian, ubuntu]
33-
container_codename: [bookworm, jammy, noble]
37+
container_codename: [bullseye, bookworm, focal, jammy, noble]
3438
qbt_build_tool: ["cmake", "qmake"]
3539
qbt_libtorrent_version: ["1.2", "2.0"]
3640
exclude:
@@ -51,10 +55,13 @@ jobs:
5155
qbt_qt_version: "6"
5256

5357
name: "${{ matrix.container_id }}-${{ matrix.container_codename }}-${{ matrix.qbt_libtorrent_version }}-qt-${{ matrix.qbt_qt_version }}-${{ matrix.qbt_build_tool }}"
58+
5459
env: # host
5560
qbt_build_dir: "qbt-build"
5661
disable_qt5: ""
5762
artifact_name: "${{ matrix.container_id }}-${{ matrix.container_codename }}-${{ matrix.qbt_libtorrent_version }}-qt-${{ matrix.qbt_qt_version }}-${{ matrix.qbt_build_tool }}-nox"
63+
script_name: ${{ inputs.script_name }}
64+
5865
container:
5966
image: ${{ matrix.container_id }}:${{ matrix.container_codename }}
6067
env: # container
@@ -66,13 +73,13 @@ jobs:
6673
qbt_libtorrent_version: ${{ matrix.qbt_libtorrent_version }}
6774
qbt_qt_version: ${{ matrix.qbt_qt_version }}
6875
qbt_build_tool: ${{ matrix.qbt_build_tool }}
69-
qbt_cross_name: ""
76+
qbt_cross_name: ${{ matrix.qbt_cross_name }}
7077
qbt_patches_url: ${{ github.repository }}
7178
qbt_skip_icu: ${{ inputs.icu }}
72-
qbt_boost_tag: ""
73-
qbt_libtorrent_tag: ""
74-
qbt_qt_tag: ""
75-
qbt_qbittorrent_tag: ""
79+
qbt_boost_tag: ${{ matrix.qbt_boost_tag }}
80+
qbt_libtorrent_tag: ${{ matrix.qbt_libtorrent_tag }}
81+
qbt_qt_tag: ${{ matrix.qbt_qt_tag }}
82+
qbt_qbittorrent_tag: ${{ matrix.qbt_qbittorrent_tag }}
7683
qbt_libtorrent_master_jamfile: ""
7784
qbt_workflow_files: ${{ inputs.workflow-files }}
7885
qbt_workflow_artifacts: ""
@@ -88,11 +95,11 @@ jobs:
8895
with:
8996
persist-credentials: false
9097

91-
- name: Bootstrap all ${{ inputs.distinct_id }}
92-
run: bash qbittorrent-nox-static.sh -bs-a
98+
- name: Bootstrap deps ${{ inputs.distinct_id }}
99+
run: bash ${script_name} bootstrap_deps
93100

94-
- name: Host - qBittorrent v5 transition ${{ inputs.distinct_id }}
95-
run: |
101+
- name: Bootstrap build ${{ inputs.distinct_id }}
102+
run: bash ${script_name} -bs-a
96103

97104
- name: Host - qBittorrent v5 transition ${{ inputs.distinct_id }}
98105
run: |
@@ -103,51 +110,58 @@ jobs:
103110
104111
- name: glibc ${{ inputs.distinct_id }}
105112
if: env.disable_qt5 != 'yes'
106-
run: bash qbittorrent-nox-static.sh glibc
113+
run: bash ${script_name} glibc
107114

108115
- name: zlib ${{ inputs.distinct_id }}
109116
if: env.disable_qt5 != 'yes'
110-
run: bash qbittorrent-nox-static.sh zlib
117+
run: bash ${script_name} zlib
111118

112119
- name: iconv ${{ inputs.distinct_id }}
113120
if: env.disable_qt5 != 'yes'
114-
run: bash qbittorrent-nox-static.sh iconv
121+
run: bash ${script_name} iconv
115122

116123
- name: icu ${{ inputs.distinct_id }}
117124
if: env.disable_qt5 != 'yes'
118-
run: bash qbittorrent-nox-static.sh icu
125+
run: bash ${script_name} icu
119126

120127
- name: openssl ${{ inputs.distinct_id }}
121128
if: env.disable_qt5 != 'yes'
122-
run: bash qbittorrent-nox-static.sh openssl
129+
run: bash ${script_name} openssl
123130

124131
- name: boost ${{ inputs.distinct_id }}
125132
if: env.disable_qt5 != 'yes'
126-
run: bash qbittorrent-nox-static.sh boost
133+
run: bash ${script_name} boost
127134

128135
- name: libtorrent ${{ inputs.distinct_id }}
129136
if: env.disable_qt5 != 'yes'
130-
run: bash qbittorrent-nox-static.sh libtorrent
137+
run: bash ${script_name} libtorrent
131138

132139
- name: double conversion ${{ inputs.distinct_id }}
133140
if: env.disable_qt5 != 'yes' && matrix.qbt_build_tool == 'cmake'
134-
run: bash qbittorrent-nox-static.sh double_conversion
141+
run: bash ${script_name} double_conversion
135142

136143
- name: qtbase ${{ inputs.distinct_id }}
137144
if: env.disable_qt5 != 'yes'
138-
run: bash qbittorrent-nox-static.sh qtbase
145+
run: bash ${script_name} qtbase
139146

140147
- name: qttools ${{ inputs.distinct_id }}
141148
if: env.disable_qt5 != 'yes'
142-
run: bash qbittorrent-nox-static.sh qttools
149+
run: bash ${script_name} qttools
143150

144151
- name: qbittorrent ${{ inputs.distinct_id }}
145152
if: env.disable_qt5 != 'yes'
146-
run: bash qbittorrent-nox-static.sh qbittorrent
153+
run: bash ${script_name} qbittorrent
147154

148155
- name: Upload ${{ env.artifact_name }} artifacts ${{ inputs.distinct_id }}
149156
if: env.disable_qt5 != 'yes'
150157
uses: actions/upload-artifact@v4
151158
with:
152159
name: ${{ env.artifact_name }}
153160
path: ${{ env.qbt_build_dir }}/completed/qbittorrent-nox
161+
162+
- name: Host - Upload logs on error
163+
if: failure() && env.disable_qt5 != 'yes'
164+
uses: actions/upload-artifact@v4
165+
with:
166+
name: "${{ env.artifact_name }}-logs"
167+
path: "${{ env.qbt_build_dir }}"

.github/workflows/ci-main-reusable-caller.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ name: ci - main reusable caller
44
on:
55
workflow_dispatch:
66
inputs:
7+
script_name:
8+
description: "Which script to run?"
9+
required: true
10+
default: "qbt-nox-static.bash"
11+
type: choice
12+
options: ["qbt-nox-static.bash", "qbittorrent-nox-static.sh"]
713
debian-build:
814
description: "Debian: build"
915
required: true
@@ -51,21 +57,26 @@ on:
5157
options: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
5258

5359
concurrency:
54-
group: ci-main-reusable-caller
60+
group: ${{ github.workflow }}
5561
cancel-in-progress: true
5662

63+
permissions: {}
64+
5765
jobs:
5866
ci-debian-build:
5967
if: always() && github.event.inputs.debian-build == 'true'
6068
concurrency:
6169
group: ci-debian-build
6270
cancel-in-progress: true
71+
permissions:
72+
contents: read
6373
uses: ./.github/workflows/ci-debian-build.yml
6474
with:
6575
distinct_id: ${{ github.event.inputs.distinct_id }}
6676
workflow-files: ${{ github.event.inputs.workflow-files == 'true' && 'yes' || 'no' }}
6777
icu: ${{ github.event.inputs.icu == 'true' && 'no' || 'yes' }}
6878
debug: ${{ github.event.inputs.debug == 'true' && 'yes' || 'no' }}
79+
script_name: ${{ github.event.inputs.script_name }}
6980

7081
ci-alpine-build:
7182
if: always() && github.event.inputs.alpine-build == 'true'
@@ -82,6 +93,7 @@ jobs:
8293
workflow-files: ${{ github.event.inputs.workflow-files == 'true' && 'yes' || 'no' }}
8394
icu: ${{ github.event.inputs.icu == 'true' && 'no' || 'yes' }}
8495
debug: ${{ github.event.inputs.debug == 'true' && 'yes' || 'no' }}
96+
script_name: ${{ github.event.inputs.script_name }}
8597

8698
ci-alpine-release:
8799
needs: [ci-alpine-build]

0 commit comments

Comments
 (0)