@@ -16,22 +16,52 @@ jobs:
1616 include :
1717 - name : x86_64
1818 icu_step_name : icu skipped
19+ preview_release : false
20+ - name : x86_64
21+ icu_step_name : icu skipped
22+ libtorrent_v2 : -lt $(git ls-remote -t --sort=-v:refname --refs https://github.com/arvidn/libtorrent.git | awk '/v2/{sub("refs/tags/", "");sub("(.*)(-[^0-9].*|rc|alpha|beta)(.*)", ""); print $2 }' | awk '!/^$/' | head -n 1)
23+ preview_release : true
1924 - name : x86_64-icu
2025 icu_step_name : icu
2126 with_icu : bash qbittorrent-nox-static.sh icu
2227 qt_with_icu : -i
28+ preview_release : false
29+ - name : x86_64-icu
30+ icu_step_name : icu
31+ with_icu : bash qbittorrent-nox-static.sh icu
32+ qt_with_icu : -i
33+ libtorrent_v2 : -lt $(git ls-remote -t --sort=-v:refname --refs https://github.com/arvidn/libtorrent.git | awk '/v2/{sub("refs/tags/", "");sub("(.*)(-[^0-9].*|rc|alpha|beta)(.*)", ""); print $2 }' | awk '!/^$/' | head -n 1)
34+ preview_release : true
35+ - name : aarch64
36+ cross_host : aarch64-linux-musl
37+ cross_openssl : linux-aarch64
38+ cross_qt_xplatform : linux-aarch64-gnu-g++
39+ icu_step_name : icu skipped
40+ preview_release : false
2341 - name : aarch64
2442 cross_host : aarch64-linux-musl
2543 cross_openssl : linux-aarch64
2644 cross_qt_xplatform : linux-aarch64-gnu-g++
2745 icu_step_name : icu skipped
46+ libtorrent_v2 : -lt $(git ls-remote -t --sort=-v:refname --refs https://github.com/arvidn/libtorrent.git | awk '/v2/{sub("refs/tags/", "");sub("(.*)(-[^0-9].*|rc|alpha|beta)(.*)", ""); print $2 }' | awk '!/^$/' | head -n 1)
47+ preview_release : true
48+ - name : aarch64-icu
49+ cross_host : aarch64-linux-musl
50+ cross_openssl : linux-aarch64
51+ cross_qt_xplatform : linux-aarch64-gnu-g++
52+ icu_step_name : icu
53+ with_icu : bash qbittorrent-nox-static.sh icu
54+ qt_with_icu : -i
55+ preview_release : false
2856 - name : aarch64-icu
2957 cross_host : aarch64-linux-musl
3058 cross_openssl : linux-aarch64
3159 cross_qt_xplatform : linux-aarch64-gnu-g++
3260 icu_step_name : icu
3361 with_icu : bash qbittorrent-nox-static.sh icu
3462 qt_with_icu : -i
63+ libtorrent_v2 : -lt $(git ls-remote -t --sort=-v:refname --refs https://github.com/arvidn/libtorrent.git | awk '/v2/{sub("refs/tags/", "");sub("(.*)(-[^0-9].*|rc|alpha|beta)(.*)", ""); print $2 }' | awk '!/^$/' | head -n 1)
64+ preview_release : true
3565 name : " ${{ matrix.name }}"
3666 env :
3767 ACTION_MULTI_ARCH : " yes"
@@ -41,10 +71,10 @@ jobs:
4171 QB_CROSS_QT_XPLATFORM : " ${{ matrix.cross_qt_xplatform }}"
4272 steps :
437344- - run : apk add bash
74+ - run : apk add bash git
4575 shell : ash {0}
4676 - name : Bootstrap
47- run : bash qbittorrent-nox-static.sh -bs-a
77+ run : bash qbittorrent-nox-static.sh "${{ matrix.libtorrent_v2 }}" -bs-a
4878 - name : Bootstrap release tag
4979 run : echo "release_tag=$(cat qb-build/release_info/tag.md)" >> $GITHUB_ENV
5080 - name : Bootstrap release title
@@ -59,20 +89,21 @@ jobs:
5989 - name : boost
6090 run : bash qbittorrent-nox-static.sh boost
6191 - name : libtorrent
62- run : bash qbittorrent-nox-static.sh libtorrent
92+ run : bash qbittorrent-nox-static.sh "${{ matrix.libtorrent_v2 }}" libtorrent
6393 - name : qtbase ${{ matrix.qt_with_icu }}
64- run : bash qbittorrent-nox-static.sh qtbase ${{ matrix.qt_with_icu }}
94+ run : bash qbittorrent-nox-static.sh ${{ matrix.qt_with_icu }} qtbase
6595 - name : qttools
6696 run : bash qbittorrent-nox-static.sh qttools
6797 - name : qbittorrent
68- run : bash qbittorrent-nox-static.sh qbittorrent
98+ run : bash qbittorrent-nox-static.sh "${{ matrix.libtorrent_v2 }}" qbittorrent
6999 #
70100 - name : " Set release asset name"
71101 run : mv -f "qb-build/completed/qbittorrent-nox" "qb-build/completed/qbittorrent-nox-${{ matrix.name }}"
72102 #
73103 - name : " Create release - tag - assets"
74104 uses : ncipollo/release-action@v1
75105 with :
106+ prerelease : ${{ matrix.preview_release }}
76107 artifacts : " qb-build/completed/qbittorrent-nox-${{ matrix.name }}"
77108 replacesArtifacts : true
78109 tag : " ${{ env.release_tag }}"
0 commit comments