Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
userdocs committed Feb 4, 2024
1 parent ecf4e7c commit 307a7d5
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 28 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/matrix_multi_build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
skip_rerun:
description: "Skip rerun?"
required: true
default: true
type: boolean
retries:
description: "Number of rerun retries"
Expand All @@ -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-"
Expand Down Expand Up @@ -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)
Expand All @@ -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'
Expand All @@ -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
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/matrix_multi_build_and_release_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
skip_rerun:
description: "Skip rerun?"
required: true
default: true
type: boolean
retries:
description: "Number of rerun retries"
Expand Down Expand Up @@ -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-"
Expand Down Expand Up @@ -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)
Expand All @@ -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'
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
skip_rerun:
description: "Skip rerun?"
required: true
default: true
type: boolean
retries:
description: "Number of rerun retries"
Expand All @@ -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]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
skip_rerun:
description: "Skip rerun?"
required: true
default: true
type: boolean
retries:
description: "Number of rerun retries"
Expand All @@ -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-"
Expand Down Expand Up @@ -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)
Expand All @@ -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'
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
skip_rerun:
description: "Skip rerun?"
required: true
default: true
type: boolean
retries:
description: "Number of rerun retries"
Expand All @@ -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-"
Expand Down Expand Up @@ -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)
Expand All @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit 307a7d5

Please sign in to comment.