Skip to content
name: Test patches integration
on:
push:
pull_request:
workflow_dispatch:
env:
BUILDDIR: "/tmp/build"
jobs:
test-integration:
runs-on: ubuntu-latest
container: archlinux:base-devel
steps:
- uses: actions/checkout@v3
- name: Create build user
run: |
useradd -m build
cp -vR linux /home/build/linux
chown -vR build /home/build/linux
- name: Set up pacman keyring
run: |
pacman-key --init
pacman-key --populate archlinux
mkdir -p /etc/gnupg && echo "auto-key-retrieve" >> /etc/gnupg/gpg.conf
- name: Switch to testing
run: |
sed -i -e 's/\#\[core\-testing\]/\[core\-testing\]/' /etc/pacman.conf
sed -i -e 's/\[core\]/#\[core\]/' /etc/pacman.conf
sed -i -e 's/\#\[extra-testing\]/\[extra\-testing\]/' /etc/pacman.conf
sed -i -e 's/\[extra\]/\#\[extra\]/' /etc/pacman.conf
sed -i -e 's/\#\[multilib\-testing\]/\[multilib\-testing\]/' /etc/pacman.conf
sed -i -e 's/\[multilib\]/\#\[multilib\]/' /etc/pacman.conf
cat /etc/pacman.conf
pacman -Syyu --noconfirm
- name: Install dependencies
run: |
pacman -Syu --noconfirm bc cpio pahole python kmod clang llvm lld
- name: Prepare sources
shell: bash
run: |
su build bash -c "cd /home/build/linux && makepkg --nobuild"