Compare commits

...

10 Commits

Author SHA1 Message Date
64c678714b Add Jenkinsfile
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>
2023-12-16 16:00:28 +08:00
SovietReimu1228
3bedfc9832 fix pkgbuild 2023-04-22 23:28:41 +09:00
SovietReimu1228
8f68835e59 fix pkgbuild 2023-04-20 18:38:55 +09:00
SovietReimu1228
3534174c99 update 2023-04-20 13:39:16 +09:00
SovietReimu1228
b3bf9653e8 update and fix 2023-04-19 20:56:45 +09:00
SovietReimu1228
dbae8a0ade update 2023-04-14 07:51:53 +09:00
SovietReimu1228
33c22b9c51 update 2023-04-01 10:14:40 +09:00
SovietReimu1228
9f9d1cf2fb update 2023-03-01 09:51:39 +09:00
SovietReimu1228
702d20668c update 2023-01-27 00:58:49 +09:00
SovietReimu1228
7073a384b5 update 2023-01-14 11:37:17 +09:00
3 changed files with 65 additions and 14 deletions

View File

@ -1,11 +1,12 @@
pkgbase = directx-headers-git
pkgdesc = DirectX headers for using D3D12
pkgver = r164.e87eade
pkgver = r181.34c9866
pkgrel = 1
url = https://github.com/microsoft/DirectX-Headers
arch = x86_64
arch = aarch64
license = MIT
makedepends = meson
makedepends = git
provides = directx-headers
conflicts = directx-headers
source = DirectX-Headers::git+https://github.com/microsoft/DirectX-Headers.git

44
Jenkinsfile vendored Normal file
View 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
}
}
}
}

View File

@ -2,10 +2,10 @@
pkgname=directx-headers-git
pkgdesc="DirectX headers for using D3D12"
pkgver=r164.e87eade
pkgver=r203.48f2395
pkgrel=1
arch=('x86_64')
makedepends=('meson')
arch=('aarch64')
makedepends=('meson' 'git')
provides=('directx-headers')
conflicts=('directx-headers')
url="https://github.com/microsoft/DirectX-Headers"
@ -19,12 +19,18 @@ pkgver() {
}
build() {
# LTO breaks mesa...
export CXXFLAGS="$CXXFLAGS -fno-lto"
arch-meson DirectX-Headers build \
meson setup DirectX-Headers build \
--prefix /usr \
--libexecdir lib \
--sbindir bin \
--buildtype plain \
--auto-features enabled \
--wrap-mode nodownload \
-D b_lto=false \
-D b_pie=true \
-D build-test=false
ninja -C build
meson configure --no-pager build
}
package() {