Skip to content

Commit 520b484

Browse files
committed
Setup CI
Signed-off-by: KenHV <yo@kenharris.xyz>
1 parent 9a2acec commit 520b484

3 files changed

Lines changed: 53 additions & 0 deletions

File tree

.cirrus.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
env:
2+
CIRRUS_CLONE_DEPTH: "1"
3+
GH_AUTH: "ENCRYPTED[!37f49a3c2ff53ae3cd6478518356b31d939652e0113563bc5eb7810872807212776b2a02c17c21f6228eb967162fb357!]"
4+
5+
generic_task:
6+
name: Generic build
7+
timeout_in: 120m
8+
container:
9+
image: archlinux:base-devel
10+
cpu: 8
11+
memory: 4G
12+
setup_env_script:
13+
- pacman -Syu --needed --noconfirm bc libelf pahole cpio perl tar xz
14+
git zstd github-cli kmod
15+
- gh auth login --with-token <<< "$GH_AUTH"
16+
- sed -i '/E_ROOT/d' /usr/bin/makepkg
17+
- sed -i "s/PKGEXT='.pkg.tar.xz'/PKGEXT='.pkg.tar.zst'/" /etc/makepkg.conf
18+
- echo 'COMPRESSZST+=(--threads=0)' >> /etc/makepkg.conf
19+
build_script:
20+
- env ci=y makepkg -s --nodeps
21+
release_script:
22+
- VER=$(grep "VERSION =" Makefile | head -1 | sed "s/.*= //" )
23+
- PATCH=$(grep "PATCHLEVEL =" Makefile | head -1 | sed "s/.*= //")
24+
- SUB=$(grep "SUBLEVEL =" Makefile | head -1 | sed "s/.*= //")
25+
- TAG="${VER}.${PATCH}.${SUB}"
26+
- TARGET="${VER}.${PATCH}"
27+
- gh release create "${TAG}" *.pkg.tar.zst -t "${TAG}" -F notes.md --target "${TARGET}"
28+
artifacts:
29+
path: "*.pkg.tar.zst"
30+
31+
athena_task:
32+
name: Athena build
33+
timeout_in: 120m
34+
container:
35+
image: archlinux:base-devel
36+
cpu: 8
37+
memory: 4G
38+
setup_env_script:
39+
- pacman -Syu --needed --noconfirm bc libelf pahole cpio perl tar xz
40+
git zstd kmod
41+
- sed -i '/E_ROOT/d' /usr/bin/makepkg
42+
- sed -i "s/PKGEXT='.pkg.tar.xz'/PKGEXT='.pkg.tar.zst'/" /etc/makepkg.conf
43+
- echo 'COMPRESSZST+=(--threads=0)' >> /etc/makepkg.conf
44+
build_script:
45+
- env ci=y personal=y makepkg -s --nodeps
46+
artifacts:
47+
path: "*.pkg.tar.zst"

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,6 @@ x509.genkey
162162

163163
# Documentation toolchain
164164
sphinx_*/
165+
166+
# CI
167+
!.cirrus.yml

notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**Installation:**
2+
Download linux-kensur and linux-kensur-headers packages and run
3+
`sudo pacman -U linux-kensur-*`

0 commit comments

Comments
 (0)