From 307a7d53291803641340f90a8aecbefc445542f3 Mon Sep 17 00:00:00 2001 From: userdocs <16525024+userdocs@users.noreply.github.com> Date: Sun, 4 Feb 2024 00:42:02 +0000 Subject: [PATCH] workflows --- .../workflows/matrix_multi_build_and_release.yml | 13 +++++++------ .../matrix_multi_build_and_release_artifacts.yml | 13 +++++++------ .../matrix_multi_build_and_release_customs_tags.yml | 9 +++++---- ...x_multi_build_and_release_qbt_workflow_files.yml | 13 +++++++------ ...i_build_and_release_qbt_workflow_files_debug.yml | 13 +++++++------ 5 files changed, 33 insertions(+), 28 deletions(-) diff --git a/.github/workflows/matrix_multi_build_and_release.yml b/.github/workflows/matrix_multi_build_and_release.yml index a1b3be73..28995209 100644 --- a/.github/workflows/matrix_multi_build_and_release.yml +++ b/.github/workflows/matrix_multi_build_and_release.yml @@ -9,6 +9,7 @@ on: skip_rerun: description: "Skip rerun?" required: true + default: true type: boolean retries: description: "Number of rerun retries" @@ -30,9 +31,9 @@ jobs: os_id: [alpine] os_version_id: [edge] # qbt_cross_name: [armel,armhf,armv7,aarch64,x86_64,x86,s390x,powerpc,ppc64el,mips,mipsel,mips64,mips64el,riscv64] - qbt_cross_name: [armhf, armv7, aarch64, x86_64, x86] + qbt_cross_name: ["armhf", "armv7", "aarch64", "x86_64", "x86"] qbt_libtorrent_version: ["1.2", "2.0"] - qbt_build_tool: ["", cmake] + qbt_build_tool: ["", "cmake"] include: - qbt_build_tool: "" qbt_qt_version_name: "qt5-" @@ -233,8 +234,8 @@ jobs: 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}") + for dependency_version_files in 1\.2/*-dependency-version.json 2\.0/*-dependency-version.json; do + [[ -f "${dependency_version_files}" ]] && dependency_version+=("${dependency_version_files}") done readarray -t dependency_version_sorted < <(printf '%s\n' "${dependency_version[@]}" | sort) @@ -260,7 +261,7 @@ jobs: name: "${{ env.release_title }}" bodyFile: "release.md" allowUpdates: true - token: "${{ secrets.GITHUB_TOKEN }}" + token: "${{ github.TOKEN }}" rerun-on-failure: if: failure() && inputs.skip_rerun == '0' @@ -270,7 +271,7 @@ jobs: actions: write runs-on: ubuntu-latest env: - GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + GH_TOKEN: "${{ github.TOKEN }}" steps: - uses: actions/checkout@v4 - name: Trigger rerun workflow on job failures diff --git a/.github/workflows/matrix_multi_build_and_release_artifacts.yml b/.github/workflows/matrix_multi_build_and_release_artifacts.yml index 90377284..f23b5b11 100644 --- a/.github/workflows/matrix_multi_build_and_release_artifacts.yml +++ b/.github/workflows/matrix_multi_build_and_release_artifacts.yml @@ -9,6 +9,7 @@ on: skip_rerun: description: "Skip rerun?" required: true + default: true type: boolean retries: description: "Number of rerun retries" @@ -52,9 +53,9 @@ jobs: os_id: [alpine] os_version_id: [edge] # qbt_cross_name: [armel,armhf,armv7,aarch64,x86_64,x86,s390x,powerpc,ppc64el,mips,mipsel,mips64,mips64el,riscv64] - qbt_cross_name: [armhf, armv7, aarch64, x86_64, x86] + qbt_cross_name: ["armhf", "armv7", "aarch64", "x86_64", "x86"] qbt_libtorrent_version: ["1.2", "2.0"] - qbt_build_tool: ["", cmake] + qbt_build_tool: ["", "cmake"] include: - qbt_build_tool: "" qbt_qt_version_name: "qt5-" @@ -297,8 +298,8 @@ jobs: 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}") + for dependency_version_files in 1\.2/*-dependency-version.json 2\.0/*-dependency-version.json; do + [[ -f "${dependency_version_files}" ]] && dependency_version+=("${dependency_version_files}") done readarray -t dependency_version_sorted < <(printf '%s\n' "${dependency_version[@]}" | sort) @@ -324,7 +325,7 @@ jobs: name: "${{ env.release_title }}" bodyFile: "release.md" allowUpdates: true - token: "${{ secrets.GITHUB_TOKEN }}" + token: "${{ github.TOKEN }}" rerun-on-failure: if: failure() && inputs.skip_rerun == '0' @@ -334,7 +335,7 @@ jobs: actions: write runs-on: ubuntu-latest env: - GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + GH_TOKEN: "${{ github.TOKEN }}" steps: - uses: actions/checkout@v4 - name: Trigger rerun workflow on job failures diff --git a/.github/workflows/matrix_multi_build_and_release_customs_tags.yml b/.github/workflows/matrix_multi_build_and_release_customs_tags.yml index 45531580..376c8e25 100644 --- a/.github/workflows/matrix_multi_build_and_release_customs_tags.yml +++ b/.github/workflows/matrix_multi_build_and_release_customs_tags.yml @@ -9,6 +9,7 @@ on: skip_rerun: description: "Skip rerun?" required: true + default: true type: boolean retries: description: "Number of rerun retries" @@ -30,7 +31,7 @@ jobs: os_id: [alpine] os_version_id: [edge] # qbt_cross_name: [armel,armhf,armv7,aarch64,x86_64,x86,s390x,powerpc,ppc64el,mips,mipsel,mips64,mips64el,riscv64] - qbt_cross_name: [armhf, armv7, aarch64, x86_64, x86] + qbt_cross_name: ["armhf", "armv7", "aarch64", "x86_64", "x86"] qbt_libtorrent_version: ["1.2", "2.0"] qbt_build_tool: ["", "cmake"] # qbt_boost_tag: [boost-1.84.0] @@ -160,7 +161,7 @@ jobs: if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this run: docker exec -w /root/${{ env.qbt_build_dir }}/release_info multiarch bash -c 'mv *.md *.json '/root/${{ env.qbt_build_dir }}/completed'' - # - name: Docker - upx compression ${{ github.event.inputs.distinct_id }} + # - name: Docker - upx compression # run: | # docker exec -w /root multiarch apk add upx # docker exec -w /root/${{ env.qbt_build_dir }}/completed multiarch upx --brute --no-lzma ${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox @@ -242,8 +243,8 @@ jobs: 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}") + for dependency_version_files in 1\.2/*-dependency-version.json 2\.0/*-dependency-version.json; do + [[ -f "${dependency_version_files}" ]] && dependency_version+=("${dependency_version_files}") done readarray -t dependency_version_sorted < <(printf '%s\n' "${dependency_version[@]}" | sort) diff --git a/.github/workflows/matrix_multi_build_and_release_qbt_workflow_files.yml b/.github/workflows/matrix_multi_build_and_release_qbt_workflow_files.yml index 3e81de33..3065ce17 100644 --- a/.github/workflows/matrix_multi_build_and_release_qbt_workflow_files.yml +++ b/.github/workflows/matrix_multi_build_and_release_qbt_workflow_files.yml @@ -9,6 +9,7 @@ on: skip_rerun: description: "Skip rerun?" required: true + default: true type: boolean retries: description: "Number of rerun retries" @@ -30,9 +31,9 @@ jobs: os_id: [alpine] os_version_id: [edge] # qbt_cross_name: [armel,armhf,armv7,aarch64,x86_64,x86,s390x,powerpc,ppc64el,mips,mipsel,mips64,mips64el,riscv64] - qbt_cross_name: [armhf, armv7, aarch64, x86_64, x86] + qbt_cross_name: ["armhf", "armv7", "aarch64", "x86_64", "x86"] qbt_libtorrent_version: ["1.2", "2.0"] - qbt_build_tool: ["", cmake] + qbt_build_tool: ["", "cmake"] include: - qbt_build_tool: "" qbt_qt_version_name: "qt5-" @@ -233,8 +234,8 @@ jobs: 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}") + for dependency_version_files in 1\.2/*-dependency-version.json 2\.0/*-dependency-version.json; do + [[ -f "${dependency_version_files}" ]] && dependency_version+=("${dependency_version_files}") done readarray -t dependency_version_sorted < <(printf '%s\n' "${dependency_version[@]}" | sort) @@ -260,7 +261,7 @@ jobs: name: "${{ env.release_title }}" bodyFile: "release.md" allowUpdates: true - token: "${{ secrets.GITHUB_TOKEN }}" + token: "${{ github.TOKEN }}" rerun-on-failure: if: failure() && inputs.skip_rerun == '0' @@ -270,7 +271,7 @@ jobs: actions: write runs-on: ubuntu-latest env: - GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + GH_TOKEN: "${{ github.TOKEN }}" steps: - uses: actions/checkout@v4 - name: Trigger rerun workflow on job failures diff --git a/.github/workflows/matrix_multi_build_and_release_qbt_workflow_files_debug.yml b/.github/workflows/matrix_multi_build_and_release_qbt_workflow_files_debug.yml index 503c75b1..13ae32df 100644 --- a/.github/workflows/matrix_multi_build_and_release_qbt_workflow_files_debug.yml +++ b/.github/workflows/matrix_multi_build_and_release_qbt_workflow_files_debug.yml @@ -9,6 +9,7 @@ on: skip_rerun: description: "Skip rerun?" required: true + default: true type: boolean retries: description: "Number of rerun retries" @@ -30,9 +31,9 @@ jobs: os_id: [alpine] os_version_id: [edge] # qbt_cross_name: [armel,armhf,armv7,aarch64,x86_64,x86,s390x,powerpc,ppc64el,mips,mipsel,mips64,mips64el,riscv64] - qbt_cross_name: [armhf, armv7, aarch64, x86_64, x86] + qbt_cross_name: ["armhf", "armv7", "aarch64", "x86_64", "x86"] qbt_libtorrent_version: ["1.2", "2.0"] - qbt_build_tool: ["", cmake] + qbt_build_tool: ["", "cmake"] include: - qbt_build_tool: "" qbt_qt_version_name: "qt5-" @@ -233,8 +234,8 @@ jobs: 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}") + for dependency_version_files in 1\.2/*-dependency-version.json 2\.0/*-dependency-version.json; do + [[ -f "${dependency_version_files}" ]] && dependency_version+=("${dependency_version_files}") done readarray -t dependency_version_sorted < <(printf '%s\n' "${dependency_version[@]}" | sort) @@ -260,7 +261,7 @@ jobs: name: "${{ env.release_title }}" bodyFile: "release.md" allowUpdates: true - token: "${{ secrets.GITHUB_TOKEN }}" + token: "${{ github.TOKEN }}" rerun-on-failure: if: failure() && inputs.skip_rerun == '0' @@ -270,7 +271,7 @@ jobs: actions: write runs-on: ubuntu-latest env: - GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + GH_TOKEN: "${{ github.TOKEN }}" steps: - uses: actions/checkout@v4 - name: Trigger rerun workflow on job failures