Skip to content

Merge branch 'torvalds:master' into master #14

Merge branch 'torvalds:master' into master

Merge branch 'torvalds:master' into master #14

Workflow file for this run

name: Builds
on:
- push
permissions:
contents: read
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build-kernel:
name: Build kernel
strategy:
fail-fast: false
matrix:
os:
- debian-12
arch:
- amd64
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get install --yes \
bc \
binutils \
bison \
cpio \
debhelper \
dpkg-dev \
flex \
git \
kmod \
libelf-dev \
libssl-dev \
rsync \
zstd
sudo apt-get install --yes pahole || true
- name: Configure git
run: |
git config user.email ${{ secrets.GIT_MAIL }}
git config user.name "Linux kernel build"
- name: Generate version string
env:
PKGARCH: "${{ matrix.arch }}"
PKGOS: "${{ matrix.os }}"
run: |
VERSION="$(make kernelversion)-${PKGARCH}-$(date -u +%d%m%Y%H%M)-$(echo ${PKGOS} | sed "s/-//g")"
echo "${VERSION}"
echo "${VERSION}" > ../.version
- name: Update the configuration
run: |
export KDEB_PKGVERSION="$(cat ../.version)"
make oldconfig
git diff .config > ../linux-${KDEB_PKGVERSION}.config.diff
git commit -m "TEMP: Refresh kernel configuration" .config
- name: Prepare for the build
run: |
mv .config .config.new
git commit -m "TEMP: Remove config from index" .config
mv .config.new .config
- name: Build the kernel
env:
DEBEMAIL: ${{ secrets.GIT_MAIL }}
DEBFULLNAME: "Linux kernel build"
KDEB_CHANGELOG_DIST: "${{ matrix.os }}"
KDEB_COMPRESS: "zstd"
PKGOS: "${{ matrix.os }}"
run: |
[ "${PKGOS}" = "debian-12" ] && export KDEB_COMPRESS="gzip"
export KDEB_PKGVERSION="$(cat ../.version)"
export KDEB_SOURCENAME="linux-azagramac-${KDEB_PKGVERSION}"
make deb-pkg -j24 || make deb-pkg -j24
- name: Prepare the artifacts
run: |
mkdir out/
mv ../linux-* out/
rm -f out/*dbg*
- name: Upload resulting build
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: ${{ matrix.os }}-${{ matrix.arch }}
path: out/*