Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
silime authored Sep 9, 2024
1 parent 687cdfc commit 405da98
Showing 1 changed file with 52 additions and 7 deletions.
59 changes: 52 additions & 7 deletions .github/workflows/build-PKGBUILDs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
with:
name: linux-firmware-aarch64-latest
path: firmware-release
build-kernel:
build-kernel-sm8250:
name: Build Linux kernel package
runs-on: ubuntu-latest
container: archlinux
Expand Down Expand Up @@ -95,23 +95,68 @@ jobs:
export MAKEFLAGS="-j9"
# Build
su nobody --pty -p -s /bin/bash -c 'makepkg-aarch64 -f --syncdeps --skippgpcheck --noconfirm'
# Build linux-sdm845
cd ../linux-sdm845
chown -R nobody .
su nobody --pty -p -s /bin/bash -c 'makepkg-aarch64 -f --syncdeps --skippgpcheck --noconfirm'
- name: Prepare release
run: |
mkdir release
cp linux-sdm845/*.pkg.tar.xz release
cp linux-sm8250/*.pkg.tar.xz release
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: linux-sm8250-aarch64-latest
path: release
build-kernel-sdm845:
name: Build Linux kernel package
runs-on: ubuntu-latest
container: archlinux

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install build dependencies
run: |
# Install makepkg deps
pacman --noconfirm -Syu
pacman --noconfirm -S sudo binutils fakeroot base-devel git \
xmlto docbook-xsl kmod inetutils bc dtc \
aarch64-linux-gnu-gcc aarch64-linux-gnu-glibc
# Fix permissions (can't makepkg as root)
echo "nobody ALL=(ALL) NOPASSWD: /usr/bin/pacman" >> /etc/sudoers
- name: Set up makepkg-aarch64 for cross-compilation
run: |
cd makepkg-aarch64
# Fix permissions (can't makepkg as root)
chown -R nobody .
# Build and install
su nobody --pty -p -s /bin/bash -c 'makepkg -fi --syncdeps --skippgpcheck --noconfirm'
- name: Build Package
run: |
cd linux-sdm845
git config --global user.email "[email protected]"
git config --global user.name "chalkinbot"
# Fix permissions (can't makepkg as root)
chown -R nobody .
# Package compression settings (Matches latest Arch)
export PKGEXT='.pkg.tar.xz'
# export COMPRESSZST=(zstd -c -T0 --ultra -20 -)
export MAKEFLAGS="-j9"
# Build
su nobody --pty -p -s /bin/bash -c 'makepkg-aarch64 -f --syncdeps --skippgpcheck --noconfirm'
- name: Prepare release
run: |
mkdir release
mv linux-sdm845/*.pkg.tar.xz release
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: linux-sdm845-aarch64-latest
path: release

build-packages:
needs: [build-linux-firmware, build-kernel]
needs: [build-linux-firmware, build-kernel-sm8250, build-kernel-sdm845]
runs-on: ubuntu-latest
env:
BUILD_SH: 'sudo arch-chroot ./builder qemu-aarch64-static /usr/bin/bash -c'
Expand Down

0 comments on commit 405da98

Please sign in to comment.