|
| 1 | +# @credits https://github.com/c0re100/qBittorrent-Enhanced-Edition/blob/v4_3_x/.github/workflows/build_and_release.yml |
| 2 | +name: qbittorrent-nox multi build |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | +jobs: |
| 6 | + build: |
| 7 | + runs-on: ubuntu-latest |
| 8 | + timeout-minutes: 1200 |
| 9 | + defaults: |
| 10 | + run: |
| 11 | + shell: bash |
| 12 | + container: alpine:latest |
| 13 | + strategy: |
| 14 | + fail-fast: false |
| 15 | + matrix: |
| 16 | + include: |
| 17 | + - name: x86_64 |
| 18 | + icu_step_name: icu skipped |
| 19 | + - name: x86_64-icu |
| 20 | + icu_step_name: icu |
| 21 | + with_icu: bash qbittorrent-nox-static.sh icu |
| 22 | + qt_with_icu: -i |
| 23 | + - name: aarch64 |
| 24 | + cross_host: aarch64-linux-musl |
| 25 | + cross_openssl: linux-aarch64 |
| 26 | + cross_qt_xplatform: linux-aarch64-gnu-g++ |
| 27 | + icu_step_name: icu skipped |
| 28 | + - name: aarch64-icu |
| 29 | + cross_host: aarch64-linux-musl |
| 30 | + cross_openssl: linux-aarch64 |
| 31 | + cross_qt_xplatform: linux-aarch64-gnu-g++ |
| 32 | + icu_step_name: icu |
| 33 | + with_icu: bash qbittorrent-nox-static.sh icu |
| 34 | + qt_with_icu: -i |
| 35 | + name: "${{ matrix.name }}" |
| 36 | + env: |
| 37 | + ACTION_MULTI_ARCH: "yes" |
| 38 | + QB_CROSS_NAME: "${{ matrix.name }}" |
| 39 | + QB_CROSS_HOST: "${{ matrix.cross_host }}" |
| 40 | + QB_CROSS_OPENSSL: "${{ matrix.cross_openssl }}" |
| 41 | + QB_CROSS_QT_XPLATFORM: "${{ matrix.cross_qt_xplatform }}" |
| 42 | + steps: |
| 43 | + |
| 44 | + - run: apk add bash |
| 45 | + shell: ash {0} |
| 46 | + - name: Bootstrap |
| 47 | + run: bash qbittorrent-nox-static.sh -bs-a |
| 48 | + - name: Bootstrap release tag |
| 49 | + run: echo "release_tag=$(cat qb-build/release_info/tag.md)" >> $GITHUB_ENV |
| 50 | + - name: Bootstrap release title |
| 51 | + run: echo "release_title=$(cat qb-build/release_info/title.md)" >> $GITHUB_ENV |
| 52 | + # |
| 53 | + - name: zlib |
| 54 | + run: bash qbittorrent-nox-static.sh zlib |
| 55 | + - name: openssl |
| 56 | + run: bash qbittorrent-nox-static.sh openssl |
| 57 | + - name: ${{ matrix.icu_step_name }} |
| 58 | + run: "${{ matrix.with_icu }}" |
| 59 | + - name: boost |
| 60 | + run: bash qbittorrent-nox-static.sh boost |
| 61 | + - name: libtorrent |
| 62 | + run: bash qbittorrent-nox-static.sh libtorrent |
| 63 | + - name: qtbase ${{ matrix.qt_with_icu }} |
| 64 | + run: bash qbittorrent-nox-static.sh qtbase ${{ matrix.qt_with_icu }} |
| 65 | + - name: qttools |
| 66 | + run: bash qbittorrent-nox-static.sh qttools |
| 67 | + - name: qbittorrent |
| 68 | + run: bash qbittorrent-nox-static.sh qbittorrent |
| 69 | + # |
| 70 | + - name: "Set release asset name" |
| 71 | + run: mv -f "qb-build/completed/qbittorrent-nox" "qb-build/completed/qbittorrent-nox-${{ matrix.name }}" |
| 72 | + # |
| 73 | + - name: "Create release - tag - assets" |
| 74 | + uses: ncipollo/release-action@v1 |
| 75 | + with: |
| 76 | + prerelease: true |
| 77 | + artifacts: "qb-build/completed/qbittorrent-nox-${{ matrix.name }}" |
| 78 | + replacesArtifacts: true |
| 79 | + tag: "${{ env.release_tag }}" |
| 80 | + name: "${{ env.release_title }}" |
| 81 | + bodyFile: "qb-build/release_info/release.md" |
| 82 | + allowUpdates: true |
| 83 | + token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments