2020 description : " debug builds"
2121 required : true
2222 type : string
23-
23+ script_name :
24+ description : " script name"
25+ required : true
26+ type : string
2427jobs :
2528 build-alpine :
2629 runs-on : ubuntu-24.04
4447
4548 env :
4649 qbt_build_dir : " qbt-build"
50+ script_name : ${{ inputs.script_name }}
4751
4852 steps :
4953 - name : Checkout ${{ inputs.distinct_id }}
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/*"
0 commit comments