-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1.29 KB
/
package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Package
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: manjarolinux/base
env:
PKGDEST: /home/builder/packages
steps:
- run: pacman -Syu git fakeroot bc docbook-xsl elfutils inetutils kmod xmlto base-devel gnupg pahole cpio --noconfirm
name: Update image and Download Depends
- uses: actions/checkout@v2
name: Checkout the Repository
# - run: useradd -m builder
# name: Add Builder User
- run: mkdir -p /home/builder
name: Create builder user home folder
- run: cp -r /__w/"$(echo -e "$GITHUB_REPOSITORY" | sed 's/.*\///g')"/"$(echo -e "$GITHUB_REPOSITORY" | sed 's/.*\///g')" /home/builder/
name: Copy Repository to Builder Home Directory
- run: mkdir -p /home/builder/packages
name: Create final package location
- run: chown builder:builder -R /home/builder
name: Chown builder home dir
- run: su builder -c "cd /home/builder/"$(echo -e "$GITHUB_REPOSITORY" | sed 's/.*\///g')"; updpkgsums; makepkg -s"
name: Compile the Kernel
- uses: actions/upload-artifact@v2
name: Generate Artifacts
if: ${{ always() }}
with:
path: /home/builder/packages/