ci(workflows): minor fixes and updates (#3581)
This commit is contained in:
parent
f76ad0d238
commit
e58a437e6b
5 changed files with 84 additions and 28 deletions
2
.github/workflows/ci-copr.yml
vendored
2
.github/workflows/ci-copr.yml
vendored
|
|
@ -26,7 +26,7 @@ jobs:
|
||||||
github_org_owner: LizardByte
|
github_org_owner: LizardByte
|
||||||
copr_ownername: lizardbyte
|
copr_ownername: lizardbyte
|
||||||
auto_update_package: true
|
auto_update_package: true
|
||||||
job_timeout: 60
|
job_timeout: 90
|
||||||
secrets:
|
secrets:
|
||||||
COPR_BETA_WEBHOOK_TOKEN: ${{ secrets.COPR_BETA_WEBHOOK_TOKEN }}
|
COPR_BETA_WEBHOOK_TOKEN: ${{ secrets.COPR_BETA_WEBHOOK_TOKEN }}
|
||||||
COPR_STABLE_WEBHOOK_TOKEN: ${{ secrets.COPR_STABLE_WEBHOOK_TOKEN }}
|
COPR_STABLE_WEBHOOK_TOKEN: ${{ secrets.COPR_STABLE_WEBHOOK_TOKEN }}
|
||||||
|
|
|
||||||
12
.github/workflows/release-notifier-moonlight.yml
vendored
12
.github/workflows/release-notifier-moonlight.yml
vendored
|
|
@ -15,13 +15,13 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: discord
|
- name: discord
|
||||||
uses: sarisia/actions-status-discord@v1 # https://github.com/sarisia/actions-status-discord
|
uses: sarisia/actions-status-discord@v1
|
||||||
with:
|
with:
|
||||||
webhook: ${{ secrets.DISCORD_RELEASE_WEBHOOK_MOONLIGHT }}
|
avatar_url: ${{ vars.ORG_LOGO_URL }}256
|
||||||
|
color: 0x${{ vars.COLOR_HEX_GREEN }}
|
||||||
|
description: ${{ github.event.release.body }}
|
||||||
nodetail: true
|
nodetail: true
|
||||||
nofail: false
|
nofail: false
|
||||||
username: ${{ secrets.DISCORD_USERNAME }}
|
|
||||||
avatar_url: ${{ secrets.ORG_LOGO_URL }}
|
|
||||||
title: ${{ github.event.repository.name }} ${{ github.ref_name }} Released
|
title: ${{ github.event.repository.name }} ${{ github.ref_name }} Released
|
||||||
description: ${{ github.event.release.body }}
|
username: ${{ secrets.DISCORD_USERNAME }}
|
||||||
color: 0xFF4500
|
webhook: ${{ secrets.DISCORD_RELEASE_WEBHOOK_MOONLIGHT }}
|
||||||
|
|
|
||||||
23
.github/workflows/update-flathub-repo.yml
vendored
23
.github/workflows/update-flathub-repo.yml
vendored
|
|
@ -9,7 +9,8 @@ name: Update flathub repo
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [released]
|
types:
|
||||||
|
- released
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "${{ github.workflow }}-${{ github.event.release.tag_name }}"
|
group: "${{ github.workflow }}-${{ github.event.release.tag_name }}"
|
||||||
|
|
@ -114,7 +115,7 @@ jobs:
|
||||||
out-file-path: "flathub/${{ env.FLATHUB_PKG }}"
|
out-file-path: "flathub/${{ env.FLATHUB_PKG }}"
|
||||||
extract: true
|
extract: true
|
||||||
|
|
||||||
- name: Delete arhive
|
- name: Delete archive
|
||||||
if: >-
|
if: >-
|
||||||
steps.check-label.outputs.hasTopic == 'true' &&
|
steps.check-label.outputs.hasTopic == 'true' &&
|
||||||
steps.check-release.outputs.isLatestRelease == 'true'
|
steps.check-release.outputs.isLatestRelease == 'true'
|
||||||
|
|
@ -172,6 +173,7 @@ jobs:
|
||||||
git checkout $main_commit
|
git checkout $main_commit
|
||||||
|
|
||||||
- name: Create/Update Pull Request
|
- name: Create/Update Pull Request
|
||||||
|
id: create-pr
|
||||||
if: >-
|
if: >-
|
||||||
steps.check-label.outputs.hasTopic == 'true' &&
|
steps.check-label.outputs.hasTopic == 'true' &&
|
||||||
steps.check-release.outputs.isLatestRelease == 'true' &&
|
steps.check-release.outputs.isLatestRelease == 'true' &&
|
||||||
|
|
@ -185,3 +187,20 @@ jobs:
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
title: "chore: Update ${{ env.FLATHUB_PKG }} to ${{ github.event.release.tag_name }}"
|
title: "chore: Update ${{ env.FLATHUB_PKG }} to ${{ github.event.release.tag_name }}"
|
||||||
body: ${{ github.event.release.body }}
|
body: ${{ github.event.release.body }}
|
||||||
|
|
||||||
|
- name: Automerge PR
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
|
if: >-
|
||||||
|
steps.check-label.outputs.hasTopic == 'true' &&
|
||||||
|
steps.check-release.outputs.isLatestRelease == 'true' &&
|
||||||
|
fromJson(steps.download.outputs.downloaded_files)[0]
|
||||||
|
run: |
|
||||||
|
gh \
|
||||||
|
pr \
|
||||||
|
merge \
|
||||||
|
--auto \
|
||||||
|
--delete-branch \
|
||||||
|
--repo "flathub/${{ env.FLATHUB_PKG }}" \
|
||||||
|
--squash \
|
||||||
|
"${{ steps.create-pr.outputs.pull-request-number }}"
|
||||||
|
|
|
||||||
25
.github/workflows/update-pacman-repo.yml
vendored
25
.github/workflows/update-pacman-repo.yml
vendored
|
|
@ -87,7 +87,16 @@ jobs:
|
||||||
out-file-path: "pkgbuilds/${{ steps.prep.outputs.pkg_name }}"
|
out-file-path: "pkgbuilds/${{ steps.prep.outputs.pkg_name }}"
|
||||||
extract: true
|
extract: true
|
||||||
|
|
||||||
|
- name: Remove pkg.tar.gz
|
||||||
|
if: >-
|
||||||
|
steps.check-label.outputs.hasTopic == 'true' &&
|
||||||
|
steps.check-release.outputs.isLatestRelease == 'true' &&
|
||||||
|
fromJson(steps.download.outputs.downloaded_files)[0]
|
||||||
|
run: |
|
||||||
|
rm -f "pkgbuilds/${{ steps.prep.outputs.pkg_name }}"
|
||||||
|
|
||||||
- name: Create/Update Pull Request
|
- name: Create/Update Pull Request
|
||||||
|
id: create-pr
|
||||||
if: >-
|
if: >-
|
||||||
steps.check-label.outputs.hasTopic == 'true' &&
|
steps.check-label.outputs.hasTopic == 'true' &&
|
||||||
steps.check-release.outputs.isLatestRelease == 'true' &&
|
steps.check-release.outputs.isLatestRelease == 'true' &&
|
||||||
|
|
@ -105,3 +114,19 @@ jobs:
|
||||||
labels: |
|
labels: |
|
||||||
auto-approve
|
auto-approve
|
||||||
auto-merge
|
auto-merge
|
||||||
|
|
||||||
|
- name: Automerge PR
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
|
if: >-
|
||||||
|
steps.check-label.outputs.hasTopic == 'true' &&
|
||||||
|
steps.check-release.outputs.isLatestRelease == 'true' &&
|
||||||
|
fromJson(steps.download.outputs.downloaded_files)[0]
|
||||||
|
run: |
|
||||||
|
gh \
|
||||||
|
pr \
|
||||||
|
merge \
|
||||||
|
--auto \
|
||||||
|
--delete-branch \
|
||||||
|
--squash \
|
||||||
|
"${{ steps.create-pr.outputs.pull-request-number }}"
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ shift $((OPTIND -1))
|
||||||
# dependencies array to build out
|
# dependencies array to build out
|
||||||
dependencies=()
|
dependencies=()
|
||||||
|
|
||||||
function add_debain_based_deps() {
|
function add_debian_based_deps() {
|
||||||
dependencies+=(
|
dependencies+=(
|
||||||
"bison" # required if we need to compile doxygen
|
"bison" # required if we need to compile doxygen
|
||||||
"build-essential"
|
"build-essential"
|
||||||
|
|
@ -134,8 +134,8 @@ function add_debain_based_deps() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_debain_deps() {
|
function add_debian_deps() {
|
||||||
add_debain_based_deps
|
add_debian_based_deps
|
||||||
dependencies+=(
|
dependencies+=(
|
||||||
"libayatana-appindicator3-dev"
|
"libayatana-appindicator3-dev"
|
||||||
)
|
)
|
||||||
|
|
@ -147,7 +147,7 @@ function add_ubuntu_deps() {
|
||||||
${sudo_cmd} add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
${sudo_cmd} add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
add_debain_based_deps
|
add_debian_based_deps
|
||||||
dependencies+=(
|
dependencies+=(
|
||||||
"libappindicator3-dev"
|
"libappindicator3-dev"
|
||||||
)
|
)
|
||||||
|
|
@ -157,8 +157,8 @@ function add_fedora_deps() {
|
||||||
dependencies+=(
|
dependencies+=(
|
||||||
"cmake"
|
"cmake"
|
||||||
"doxygen"
|
"doxygen"
|
||||||
"gcc"
|
"gcc${gcc_version}"
|
||||||
"g++"
|
"gcc${gcc_version}-c++"
|
||||||
"git"
|
"git"
|
||||||
"graphviz"
|
"graphviz"
|
||||||
"libappindicator-gtk3-devel"
|
"libappindicator-gtk3-devel"
|
||||||
|
|
@ -304,12 +304,12 @@ function run_install() {
|
||||||
$package_update_command
|
$package_update_command
|
||||||
|
|
||||||
if [ "$distro" == "debian" ]; then
|
if [ "$distro" == "debian" ]; then
|
||||||
add_debain_deps
|
add_debian_deps
|
||||||
elif [ "$distro" == "ubuntu" ]; then
|
elif [ "$distro" == "ubuntu" ]; then
|
||||||
add_ubuntu_deps
|
add_ubuntu_deps
|
||||||
elif [ "$distro" == "fedora" ]; then
|
elif [ "$distro" == "fedora" ]; then
|
||||||
add_fedora_deps
|
add_fedora_deps
|
||||||
${sudo_cmd} dnf group install "Development Tools" -y
|
${sudo_cmd} dnf group install "$dev_tools_group" -y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install the dependencies
|
# Install the dependencies
|
||||||
|
|
@ -445,24 +445,36 @@ if grep -q "Debian GNU/Linux 12 (bookworm)" /etc/os-release; then
|
||||||
cuda_build="525.60.13"
|
cuda_build="525.60.13"
|
||||||
gcc_version="12"
|
gcc_version="12"
|
||||||
nvm_node=0
|
nvm_node=0
|
||||||
elif grep -q "PLATFORM_ID=\"platform:f39\"" /etc/os-release; then
|
|
||||||
distro="fedora"
|
|
||||||
version="39"
|
|
||||||
package_update_command="${sudo_cmd} dnf update -y"
|
|
||||||
package_install_command="${sudo_cmd} dnf install -y"
|
|
||||||
cuda_version="12.4.0"
|
|
||||||
cuda_build="550.54.14"
|
|
||||||
gcc_version="13"
|
|
||||||
nvm_node=0
|
|
||||||
elif grep -q "PLATFORM_ID=\"platform:f40\"" /etc/os-release; then
|
elif grep -q "PLATFORM_ID=\"platform:f40\"" /etc/os-release; then
|
||||||
distro="fedora"
|
distro="fedora"
|
||||||
version="40"
|
version="40"
|
||||||
package_update_command="${sudo_cmd} dnf update -y"
|
package_update_command="${sudo_cmd} dnf update -y"
|
||||||
package_install_command="${sudo_cmd} dnf install -y"
|
package_install_command="${sudo_cmd} dnf install -y"
|
||||||
cuda_version=
|
cuda_version=12.6.3
|
||||||
cuda_build=
|
cuda_build=560.35.05
|
||||||
gcc_version="13"
|
gcc_version="13"
|
||||||
nvm_node=0
|
nvm_node=0
|
||||||
|
dev_tools_group="Development Tools"
|
||||||
|
elif grep -q "PLATFORM_ID=\"platform:f41\"" /etc/os-release; then
|
||||||
|
distro="fedora"
|
||||||
|
version="41"
|
||||||
|
package_update_command="${sudo_cmd} dnf update -y"
|
||||||
|
package_install_command="${sudo_cmd} dnf install -y"
|
||||||
|
cuda_version=12.6.3
|
||||||
|
cuda_build=560.35.05
|
||||||
|
gcc_version="13"
|
||||||
|
nvm_node=0
|
||||||
|
dev_tools_group="development-tools"
|
||||||
|
elif grep -q "PLATFORM_ID=\"platform:f42\"" /etc/os-release; then
|
||||||
|
distro="fedora"
|
||||||
|
version="42"
|
||||||
|
package_update_command="${sudo_cmd} dnf update -y"
|
||||||
|
package_install_command="${sudo_cmd} dnf install -y"
|
||||||
|
cuda_version=12.8.1
|
||||||
|
cuda_build=570.124.06
|
||||||
|
gcc_version="14"
|
||||||
|
nvm_node=0
|
||||||
|
dev_tools_group="development-tools"
|
||||||
elif grep -q "Ubuntu 22.04" /etc/os-release; then
|
elif grep -q "Ubuntu 22.04" /etc/os-release; then
|
||||||
distro="ubuntu"
|
distro="ubuntu"
|
||||||
version="22.04"
|
version="22.04"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue