Add Jenkinsfile
Some checks failed
gitea/pkg-directx-headers-git/pipeline/head There was a failure building this commit
Some checks failed
gitea/pkg-directx-headers-git/pipeline/head There was a failure building this commit
Signed-off-by: Molly Sophia <mollysophia379@gmail.com>
This commit is contained in:
parent
3bedfc9832
commit
64c678714b
2
.SRCINFO
2
.SRCINFO
@ -3,7 +3,7 @@ pkgbase = directx-headers-git
|
|||||||
pkgver = r181.34c9866
|
pkgver = r181.34c9866
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://github.com/microsoft/DirectX-Headers
|
url = https://github.com/microsoft/DirectX-Headers
|
||||||
arch = x86_64
|
arch = aarch64
|
||||||
license = MIT
|
license = MIT
|
||||||
makedepends = meson
|
makedepends = meson
|
||||||
makedepends = git
|
makedepends = git
|
||||||
|
44
Jenkinsfile
vendored
Normal file
44
Jenkinsfile
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
label 'aarch64 && archlinux'
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Download Config') {
|
||||||
|
steps {
|
||||||
|
dir('jenkins-utils') {
|
||||||
|
git 'https://gitlab.classfun.cn:4443/renegade-project/jenkins-utils'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Cleanup packages') {
|
||||||
|
steps {
|
||||||
|
sh 'rm -f *.pkg.tar.*'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
sh 'makepkg --config jenkins-utils/makepkg-aarch64.conf --syncdeps --force --noconfirm'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Signature packages') {
|
||||||
|
steps {
|
||||||
|
withCredentials([
|
||||||
|
file(credentialsId: 'gpg-file', variable: 'GPG_FILE'),
|
||||||
|
string(credentialsId: 'gpg-secret', variable: 'GPG_SECRET')
|
||||||
|
]) {
|
||||||
|
sh 'python3 jenkins-utils/sign-pkg.py -d . -k "$GPG_FILE" -p "$GPG_SECRET"'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Upload packages') {
|
||||||
|
steps {
|
||||||
|
sh 'python3 jenkins-utils/upload-pkg.py -d . -a aarch64'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Archive') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts artifacts: '*.pkg.tar.*', fingerprint: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
4
PKGBUILD
4
PKGBUILD
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
pkgname=directx-headers-git
|
pkgname=directx-headers-git
|
||||||
pkgdesc="DirectX headers for using D3D12"
|
pkgdesc="DirectX headers for using D3D12"
|
||||||
pkgver=r181.34c9866
|
pkgver=r203.48f2395
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
arch=('x86_64')
|
arch=('aarch64')
|
||||||
makedepends=('meson' 'git')
|
makedepends=('meson' 'git')
|
||||||
provides=('directx-headers')
|
provides=('directx-headers')
|
||||||
conflicts=('directx-headers')
|
conflicts=('directx-headers')
|
||||||
|
Loading…
Reference in New Issue
Block a user