Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e58a437

Browse files
ci(workflows): minor fixes and updates (#3581)
1 parent f76ad0d commit e58a437

File tree

5 files changed

+81
-25
lines changed

5 files changed

+81
-25
lines changed

.github/workflows/ci-copr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
github_org_owner: LizardByte
2727
copr_ownername: lizardbyte
2828
auto_update_package: true
29-
job_timeout: 60
29+
job_timeout: 90
3030
secrets:
3131
COPR_BETA_WEBHOOK_TOKEN: ${{ secrets.COPR_BETA_WEBHOOK_TOKEN }}
3232
COPR_STABLE_WEBHOOK_TOKEN: ${{ secrets.COPR_STABLE_WEBHOOK_TOKEN }}

.github/workflows/release-notifier-moonlight.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: discord
18-
uses: sarisia/actions-status-discord@v1 # https://github.com/sarisia/actions-status-discord
18+
uses: sarisia/actions-status-discord@v1
1919
with:
20-
webhook: ${{ secrets.DISCORD_RELEASE_WEBHOOK_MOONLIGHT }}
20+
avatar_url: ${{ vars.ORG_LOGO_URL }}256
21+
color: 0x${{ vars.COLOR_HEX_GREEN }}
22+
description: ${{ github.event.release.body }}
2123
nodetail: true
2224
nofail: false
23-
username: ${{ secrets.DISCORD_USERNAME }}
24-
avatar_url: ${{ secrets.ORG_LOGO_URL }}
2525
title: ${{ github.event.repository.name }} ${{ github.ref_name }} Released
26-
description: ${{ github.event.release.body }}
27-
color: 0xFF4500
26+
username: ${{ secrets.DISCORD_USERNAME }}
27+
webhook: ${{ secrets.DISCORD_RELEASE_WEBHOOK_MOONLIGHT }}

.github/workflows/update-flathub-repo.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ name: Update flathub repo
99

1010
on:
1111
release:
12-
types: [released]
12+
types:
13+
- released
1314

1415
concurrency:
1516
group: "${{ github.workflow }}-${{ github.event.release.tag_name }}"
@@ -114,7 +115,7 @@ jobs:
114115
out-file-path: "flathub/${{ env.FLATHUB_PKG }}"
115116
extract: true
116117

117-
- name: Delete arhive
118+
- name: Delete archive
118119
if: >-
119120
steps.check-label.outputs.hasTopic == 'true' &&
120121
steps.check-release.outputs.isLatestRelease == 'true'
@@ -172,6 +173,7 @@ jobs:
172173
git checkout $main_commit
173174
174175
- name: Create/Update Pull Request
176+
id: create-pr
175177
if: >-
176178
steps.check-label.outputs.hasTopic == 'true' &&
177179
steps.check-release.outputs.isLatestRelease == 'true' &&
@@ -185,3 +187,20 @@ jobs:
185187
delete-branch: true
186188
title: "chore: Update ${{ env.FLATHUB_PKG }} to ${{ github.event.release.tag_name }}"
187189
body: ${{ github.event.release.body }}
190+
191+
- name: Automerge PR
192+
env:
193+
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
194+
if: >-
195+
steps.check-label.outputs.hasTopic == 'true' &&
196+
steps.check-release.outputs.isLatestRelease == 'true' &&
197+
fromJson(steps.download.outputs.downloaded_files)[0]
198+
run: |
199+
gh \
200+
pr \
201+
merge \
202+
--auto \
203+
--delete-branch \
204+
--repo "flathub/${{ env.FLATHUB_PKG }}" \
205+
--squash \
206+
"${{ steps.create-pr.outputs.pull-request-number }}"

.github/workflows/update-pacman-repo.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,16 @@ jobs:
8787
out-file-path: "pkgbuilds/${{ steps.prep.outputs.pkg_name }}"
8888
extract: true
8989

90+
- name: Remove pkg.tar.gz
91+
if: >-
92+
steps.check-label.outputs.hasTopic == 'true' &&
93+
steps.check-release.outputs.isLatestRelease == 'true' &&
94+
fromJson(steps.download.outputs.downloaded_files)[0]
95+
run: |
96+
rm -f "pkgbuilds/${{ steps.prep.outputs.pkg_name }}"
97+
9098
- name: Create/Update Pull Request
99+
id: create-pr
91100
if: >-
92101
steps.check-label.outputs.hasTopic == 'true' &&
93102
steps.check-release.outputs.isLatestRelease == 'true' &&
@@ -105,3 +114,19 @@ jobs:
105114
labels: |
106115
auto-approve
107116
auto-merge
117+
118+
- name: Automerge PR
119+
env:
120+
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
121+
if: >-
122+
steps.check-label.outputs.hasTopic == 'true' &&
123+
steps.check-release.outputs.isLatestRelease == 'true' &&
124+
fromJson(steps.download.outputs.downloaded_files)[0]
125+
run: |
126+
gh \
127+
pr \
128+
merge \
129+
--auto \
130+
--delete-branch \
131+
--squash \
132+
"${{ steps.create-pr.outputs.pull-request-number }}"

scripts/linux_build.sh

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ shift $((OPTIND -1))
9090
# dependencies array to build out
9191
dependencies=()
9292

93-
function add_debain_based_deps() {
93+
function add_debian_based_deps() {
9494
dependencies+=(
9595
"bison" # required if we need to compile doxygen
9696
"build-essential"
@@ -134,8 +134,8 @@ function add_debain_based_deps() {
134134
fi
135135
}
136136

137-
function add_debain_deps() {
138-
add_debain_based_deps
137+
function add_debian_deps() {
138+
add_debian_based_deps
139139
dependencies+=(
140140
"libayatana-appindicator3-dev"
141141
)
@@ -147,7 +147,7 @@ function add_ubuntu_deps() {
147147
${sudo_cmd} add-apt-repository ppa:ubuntu-toolchain-r/test -y
148148
fi
149149

150-
add_debain_based_deps
150+
add_debian_based_deps
151151
dependencies+=(
152152
"libappindicator3-dev"
153153
)
@@ -157,8 +157,8 @@ function add_fedora_deps() {
157157
dependencies+=(
158158
"cmake"
159159
"doxygen"
160-
"gcc"
161-
"g++"
160+
"gcc${gcc_version}"
161+
"gcc${gcc_version}-c++"
162162
"git"
163163
"graphviz"
164164
"libappindicator-gtk3-devel"
@@ -304,12 +304,12 @@ function run_install() {
304304
$package_update_command
305305

306306
if [ "$distro" == "debian" ]; then
307-
add_debain_deps
307+
add_debian_deps
308308
elif [ "$distro" == "ubuntu" ]; then
309309
add_ubuntu_deps
310310
elif [ "$distro" == "fedora" ]; then
311311
add_fedora_deps
312-
${sudo_cmd} dnf group install "Development Tools" -y
312+
${sudo_cmd} dnf group install "$dev_tools_group" -y
313313
fi
314314

315315
# Install the dependencies
@@ -445,24 +445,36 @@ if grep -q "Debian GNU/Linux 12 (bookworm)" /etc/os-release; then
445445
cuda_build="525.60.13"
446446
gcc_version="12"
447447
nvm_node=0
448-
elif grep -q "PLATFORM_ID=\"platform:f39\"" /etc/os-release; then
448+
elif grep -q "PLATFORM_ID=\"platform:f40\"" /etc/os-release; then
449449
distro="fedora"
450-
version="39"
450+
version="40"
451451
package_update_command="${sudo_cmd} dnf update -y"
452452
package_install_command="${sudo_cmd} dnf install -y"
453-
cuda_version="12.4.0"
454-
cuda_build="550.54.14"
453+
cuda_version=12.6.3
454+
cuda_build=560.35.05
455455
gcc_version="13"
456456
nvm_node=0
457-
elif grep -q "PLATFORM_ID=\"platform:f40\"" /etc/os-release; then
457+
dev_tools_group="Development Tools"
458+
elif grep -q "PLATFORM_ID=\"platform:f41\"" /etc/os-release; then
458459
distro="fedora"
459-
version="40"
460+
version="41"
460461
package_update_command="${sudo_cmd} dnf update -y"
461462
package_install_command="${sudo_cmd} dnf install -y"
462-
cuda_version=
463-
cuda_build=
463+
cuda_version=12.6.3
464+
cuda_build=560.35.05
464465
gcc_version="13"
465466
nvm_node=0
467+
dev_tools_group="development-tools"
468+
elif grep -q "PLATFORM_ID=\"platform:f42\"" /etc/os-release; then
469+
distro="fedora"
470+
version="42"
471+
package_update_command="${sudo_cmd} dnf update -y"
472+
package_install_command="${sudo_cmd} dnf install -y"
473+
cuda_version=12.8.1
474+
cuda_build=570.124.06
475+
gcc_version="14"
476+
nvm_node=0
477+
dev_tools_group="development-tools"
466478
elif grep -q "Ubuntu 22.04" /etc/os-release; then
467479
distro="ubuntu"
468480
version="22.04"

0 commit comments

Comments
 (0)