update kernel #53
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build kernel arch packages | |
on: | |
push: | |
tags: | |
- 'arch*' | |
env: | |
GPG_KEY_ID: 56C464BAAC421453 | |
jobs: | |
build: | |
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.zst' | |
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.zst release | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v1 | |
with: | |
name: linux-sdm845-aarch64-latest | |
path: release | |
release: | |
name: Publish release | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v1 | |
with: | |
name: linux-sdm845-aarch64-latest | |
- name: Upload assets | |
uses: svenstaro/upload-release-action@v1-release | |
with: | |
repo_token: ${{ secrets.BUILD_TOKEN }} | |
file: ./*-latest/* | |
tag: ${{ github.ref }} | |
overwrite: true | |
file_glob: true |