Commit 291e8a4 1 parent e00620f commit 291e8a4 Copy full SHA for 291e8a4
File tree 2 files changed +49
-0
lines changed
2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Upload AUR
2
+
3
+ on : [push]
4
+ # on:
5
+ # release:
6
+ # types: [created]
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout Code
13
+ uses : actions/checkout@v4
14
+ - name : generate PKGBUILD
15
+ run : |
16
+ cp scripts/ci/PKGBUILD .
17
+ PACKAGE_NAME=$(grep '^name =' Cargo.toml | sed 's/name = "\(.*\)"/\1/')
18
+ VERSION=$(grep '^version =' Cargo.toml | sed 's/version = "\(.*\)"/\1/')
19
+ MAINTAINER=$(grep '^authors =' Cargo.toml | sed 's/authors = \[\s*"\(.*\)\s*"\]/\1/')
20
+ DESCRIPTION=$(grep '^description =' Cargo.toml | sed 's/description = "\(.*\)"/\1/')
21
+ sed -i "1i # Maintainer: ${MAINTAINER}" PKGBUILD
22
+ sed -i "s/^pkgname=.*/pkgname=${PACKAGE_NAME}/" PKGBUILD
23
+ sed -i "s/^pkgver=.*/pkgver=${VERSION}/" PKGBUILD
24
+ sed -i "s/^pkgdesc=.*/pkgdesc='${DESCRIPTION}'/" PKGBUILD
25
+ - name : Validate package
26
+ uses : heyhusen/archlinux-package-action@v2
27
+ with :
28
+ path : /tmp/package
29
+ updpkgsums : true
30
+ srcinfo : true
31
+
32
+ - name : Upload Archive
33
+ uses : actions/upload-artifact@v4
34
+ with :
35
+ name : test
36
+ path : PKGBUILD
Original file line number Diff line number Diff line change
1
+ pkgname=
2
+ pkgver=
3
+ pkgrel=1
4
+ pkgdesc=
5
+ url=https://turingpi.com/
6
+ license=(' Apache' )
7
+ arch=(' x86_64' ' aarch64' )
8
+ source_x86_64=(" https://github.com/turing-machines/tpi/releases/download/v${pkgver} /tpi-x86_64-unknown-linux-gnu.tar.gz" )
9
+ source_aarch64=(" https://github.com/turing-machines/tpi/releases/download/v${pkgver} /tpi-aarch64-unknown-linux-gnu.tar.gz" )
10
+
11
+ package () {
12
+ tar -xzf " ${srcdir} /tpi-${CARCH} -unknown-linux-gnu.tar.gz" -C " ${pkgdir} "
13
+ }
You can’t perform that action at this time.
0 commit comments