Compare commits

..

6 Commits

Author SHA1 Message Date
bfd826276d fixup! wip: ci: use fedoraBuild
All checks were successful
RPMs/gasket-driver/pipeline/head This commit looks good
2025-11-23 13:04:19 -06:00
b2937d54c2 fixup! wip: ci: use fedoraBuild 2025-11-23 12:56:34 -06:00
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 22 additions and 23 deletions

38
ci/Jenkinsfile vendored
View File

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

View File

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