Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
userdocs committed Dec 28, 2023
1 parent 12b3fa5 commit 07a330a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ jobs:
matrix:
qbt_libtorrent_version: ["1.2", "2.0"]
include:
- qbt_libtorrent_version: "2.0"
preview_release: false

- qbt_libtorrent_version: "1.2"
preview_release: true

- qbt_libtorrent_version: "2.0"
preview_release: false

name: "Publish release libtorrent-v${{ matrix.qbt_libtorrent_version }}"

env:
Expand Down Expand Up @@ -198,18 +198,27 @@ jobs:

- name: Host - merge release-info ${{ github.event.inputs.distinct_id }}
run: |
for release in 1\.2/*-release.md 2\.0/*-release.md; do
[[ -f "${release}" ]] && release+=("${release}")
done
if [[ ${{ matrix.qbt_libtorrent_version }} == "1.2" ]]; then
for release in 1\.2/*-release.md; do
[[ -f "${release}" ]] && release+=("${release}")
done
fi
if [[ ${{ matrix.qbt_libtorrent_version }} == "2.0" ]]; then
for release in 2\.0/*-release.md; do
[[ -f "${release}" ]] && release+=("${release}")
done
fi
readarray -t release_sorted < <(printf '%s\n' "${release[@]}" | sort)
for dependency_version in 1\.2/*-dependency-version.json 2\.0/*-dependency-version.json; do
[[ -f "${dependency_version}" ]] && dependency_version+=("${dependency_version}")
done
readarray -t release_sorted < <(printf '%s\n' "${release[@]}" | sort)
readarray -t dependency_version_sorted < <(printf '%s\n' "${dependency_version[@]}" | sort)
paste -d '\n' "${release_sorted[@]}" | uniq | awk '!(NF && seen[$0]++)' > "tmp-release.md"
paste -d '\n' "${release_sorted[@]}" | uniq | awk '!(NF && seen[$0]++) || /^>/' > "tmp-release.md"
paste -d '\n' "${dependency_version_sorted[@]}" | uniq | awk '!(NF && seen[$0]++)' > "dependency-version.json"
./pandoc --wrap=preserve -f gfm tmp-release.md -t gfm -o release.md
Expand Down
32 changes: 19 additions & 13 deletions qbittorrent-nox-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1580,6 +1580,10 @@ _release_info() {
}
DEPENDENCY_INFO

[[ ${qbt_workflow_files} == "no" && ${qbt_workflow_artifacts} == "no" ]] && source_text="source files - direct"
[[ ${qbt_workflow_files} == "yes" ]] && source_text="source files - workflows: [qbt-workflow-files](https://github.com/userdocs/qbt-workflow-files/releases/latest)"
[[ ${qbt_workflow_artifacts} == "yes" ]] && source_text="source files - artifacts: [qbt-workflow-files](https://github.com/userdocs/qbt-workflow-files/releases/latest)"

cat > "${release_info_dir}/qt${qt_version_short_array[0]}-${qbt_cross_name}-release.md" <<- RELEASE_INFO
## Build info
Expand All @@ -1594,9 +1598,10 @@ _release_info() {
## Architecture and build info
🔵 These source code files are used for workflows: [qbt-workflow-files](https://github.com/userdocs/qbt-workflow-files/releases/latest)
🔵 These builds were created on Alpine linux using [custom prebuilt musl toolchains](https://github.com/userdocs/qbt-musl-cross-make/releases/latest) for:
> [!NOTE]
> ${source_text}
>
> These builds were created on Alpine linux using [custom prebuilt musl toolchains](https://github.com/userdocs/qbt-musl-cross-make/releases/latest) for:
RELEASE_INFO

{
Expand All @@ -1620,13 +1625,14 @@ _release_info() {
} >> "${release_info_dir}/qt${qt_version_short_array[0]}-${qbt_cross_name}-release.md"

cat >> "${release_info_dir}/qt${qt_version_short_array[0]}-${qbt_cross_name}-release.md" <<- RELEASE_INFO
## Info about the build matrixes for qbittorrent-nox-static
🟡 With Qbittorrent 4.4.0 onwards all cmake builds use Qt6 and all qmake builds use Qt5, as long as Qt5 is supported.
🟡 Binary builds are stripped - See https://userdocs.github.io/qbittorrent-nox-static/#/debugging
🟠 Qbittorrent v5 won't support qmake (Qt5) builds so Qt6 (cmake) will become default and Qt5 builds will no longer be released.
## General Info
> [!WARNING]
> With Qbittorrent 4.4.0 onwards all cmake builds use Qt6 and all qmake builds use Qt5, as long as Qt5 is supported or qBitorrent V5 is released.
>
> Qbittorrent v5 won't support qmake (Qt5) builds so Qt6 (cmake) will become default and Qt5 builds will no longer be released.
>
> Binary builds are stripped - See https://userdocs.github.io/qbittorrent-nox-static/#/debugging
RELEASE_INFO

return
Expand Down Expand Up @@ -2004,7 +2010,7 @@ while (("${#}")); do
;;
-h-bs-ma | --help-boot-strap-multi-arch)
printf '\n%b\n' " ${ulcc} ${tb}${tu}Here is the help description for this flag:${cend}"
printf '\n%b\n' " ${urc}${clr} Github action and ALpine specific. You probably dont need it${cend}"
printf '\n%b\n' " ${urc}${clr} Github action and Alpine specific. You probably dont need it${cend}"
printf '\n%b\n' " This switch bootstraps the musl cross build files needed for any provided and supported architecture"
printf '\n%b\n' " ${uyc} armhf"
printf '%b\n' " ${uyc} armv7"
Expand All @@ -2015,7 +2021,7 @@ while (("${#}")); do
;;
-h-bs-a | --help-boot-strap-all)
printf '\n%b\n' " ${ulcc} ${tb}${tu}Here is the help description for this flag:${cend}"
printf '\n%b\n' " ${urc}${clr} Github action specific and Apine only. You probably dont need it${cend}"
printf '\n%b\n' " ${urc}${clr} Github action specific and Alpine only. You probably dont need it${cend}"
printf '\n%b\n' " Performs all bootstrapping options"
printf '\n%b\n' "${clg} Usage:${cend} ${clc}${qbt_working_dir_short}/$(basename -- "$0")${cend} ${clb}-bs-a${cend}"
printf '\n%b\n' " ${uyc} ${cly}Patches${cend}"
Expand Down Expand Up @@ -2082,7 +2088,7 @@ while (("${#}")); do
;;
-h-ma | --help-multi-arch)
printf '\n%b\n' " ${ulcc} ${tb}${tu}Here is the help description for this flag:${cend}"
printf '\n%b\n' " ${urc}${clr} Github action and ALpine specific. You probably dont need it${cend}"
printf '\n%b\n' " ${urc}${clr} Github action and Alpine specific. You probably dont need it${cend}"
printf '\n%b\n' " This switch will make the script use the cross build configuration for these supported architectures"
printf '\n%b\n' " ${uyc} armhf"
printf '%b\n' " ${uyc} armv7"
Expand Down

0 comments on commit 07a330a

Please sign in to comment.