-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: enable Fedora 41 builds (#240)
Signed-off-by: m2Giles <[email protected]> Co-authored-by: Jorge O. Castro <[email protected]> Co-authored-by: Benjamin Sherman <[email protected]> Co-authored-by: m2 <[email protected]>
- Loading branch information
1 parent
2ae7d08
commit c050dfb
Showing
8 changed files
with
99 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: ublue akmods 41 | ||
on: | ||
pull_request: | ||
merge_group: | ||
schedule: | ||
- cron: '10 2 * * *' # 2am-ish UTC everyday (timed against official fedora container pushes, and after 'config') | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: build | ||
uses: ./.github/workflows/reusable-build.yml | ||
secrets: inherit | ||
with: | ||
fedora_version: 41 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
#!/bin/sh | ||
|
||
set -oeux pipefail | ||
#!/bin/bash | ||
|
||
set -eoux pipefail | ||
|
||
ARCH="$(rpm -E '%_arch')" | ||
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')" | ||
RELEASE="$(rpm -E '%fedora')" | ||
|
||
cp /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/negativo17-fedora-multimedia.repo /etc/yum.repos.d/ | ||
|
||
if [[ "${FEDORA_MAJOR_VERSION}" -ge 41 ]]; then | ||
if dnf search displaylink | grep -qv "displaylink"; then | ||
echo "Skipping build of evdi; displaylink net yet provided by negativo17" | ||
exit 0 | ||
fi | ||
fi | ||
|
||
set -e pipefail | ||
|
||
### BUILD evdi (succeed or fail-fast with debug output) | ||
export CFLAGS="-fno-pie -no-pie" | ||
dnf install -y \ | ||
akmod-evdi-*.fc${RELEASE}.${ARCH} | ||
kmod-evdi*.fc"${RELEASE}.${ARCH}" akmod-evdi-*.fc"${RELEASE}.${ARCH}" | ||
akmods --force --kernels "${KERNEL}" --kmod evdi | ||
modinfo /usr/lib/modules/${KERNEL}/extra/evdi/evdi.ko.xz > /dev/null \ | ||
|| (find /var/cache/akmods/evdi/ -name \*.log -print -exec cat {} \; && exit 1) | ||
modinfo /usr/lib/modules/"${KERNEL}"/extra/evdi/evdi.ko.xz >/dev/null || | ||
(find /var/cache/akmods/evdi/ -name \*.log -print -exec cat {} \; && exit 1) | ||
|
||
rm -f /etc/yum.repos.d/negativo17-fedora-multimedia.repo | ||
unset CFLAGS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters