Compare commits

..

4 Commits

Author SHA1 Message Date
0ace925ec1 fixup! wip: ci: use fedoraBuild
All checks were successful
RPMs/gasket-driver/pipeline/head This commit looks good
2025-11-23 12:55:40 -06:00
49eff87281 fixup! wip: ci: use fedoraBuild
All checks were successful
RPMs/gasket-driver/pipeline/head This commit looks good
2025-11-23 11:45:21 -06:00
2c803f822e fixup! wip: ci: use fedoraBuild
All checks were successful
RPMs/gasket-driver/pipeline/head This commit looks good
2025-11-23 11:43:36 -06:00
4a4295e1a2 wip: ci: use fedoraBuild
Some checks failed
RPMs/gasket-driver/pipeline/head There was a failure building this commit
2025-11-23 11:42:55 -06:00
2 changed files with 14 additions and 23 deletions

30
ci/Jenkinsfile vendored
View File

@@ -1,4 +1,4 @@
@Library('dch')_
@Library('dch@fedora')_
properties([
pipelineTriggers([
@@ -19,33 +19,29 @@ properties([
])
try {
fedoraBuild(
architectures: ['amd64'],
podTemplate: 'ci/podTemplate.yaml',
buildContainer: 'fedora',
) { arch, fedoraVersion ->
stage("Prepare f${fedoraVersion}/${arch}") {
fedoraBuild(architectures: ['amd64']) {
stage('Prepare') {
checkout scm
container('fedora') {
container('build') {
sh '. ci/prepare.sh'
}
}
stage("Build f${fedoraVersion}/${arch}") {
stage('Build') {
withCredentials([file(
credentialsId: 'kmod-signing-cert',
variable: 'SIGNING_KEY',
)]) {
container('fedora') {
container('build') {
sh '. ci/build.sh'
}
}
}
stage("Sign f${fedoraVersion}/${arch}") {
stage('Sign') {
when(BRANCH_NAME == 'main') {
withEnv([
withEnvironment([
"GNUPGHOME=${env.WORKSPACE_TMP}/gnupg",
]) {
withCredentials([
@@ -58,19 +54,17 @@ try {
variable: 'RPM_GPG_KEY_PASSPHRASE',
),
]) {
container('fedora') {
sh '. ci/sign.sh'
}
sh '. ci/sign.sh'
}
}
}
}
}
archiveArtifacts '*.rpm'
stage("Publish f${fedoraVersion}/${arch}") {
stage('Publish') {
when(BRANCH_NAME == 'main') {
container('fedora') {
container('build') {
sshagent(['jenkins-repohost']) {
sh '. ci/publish.sh'
}

View File

@@ -9,7 +9,7 @@
Name: gasket-driver
Version: 0.0.git%{git_revision}
Release: 5.k%{kernel_version}%{?dist}
Release: 3.k%{kernel_version}%{?dist}
Summary: The Coral Gasket Driver allows usage of the Coral EdgeTPU on Linux systems
License: GPL-2.0
@@ -19,8 +19,8 @@ Patch0: 0001-core-Omit-no_llseek-reference.patch
Patch1: 0002-Update-gasket_page_table.c-Fix-MODULE_IMPORT_NS.patch
BuildRequires: kernel-devel
Provides: installonlypkg(kernel-module)
Requires: kernel-core == %{kernel_version}
Conflicts: kernel-core > %{kernel_version}
Requires(post): kmod
%description
@@ -50,9 +50,6 @@ depmod -a %{kernel_ver}.%{_arch}
%changelog
* Sun Nov 23 2025 Dustin C. Hatch <dustin@hatch.name> [0.0.git5815ee3-4]
- Provide installonlypkg(kernel-module)
* Sun Nov 16 2025 Dustin C. Hatch <dustin@hatch.name> [0.0.git5815ee3-2]
- Include kernel version in release tag