CI: Add a bore-eevdf runner and reenable _STRIP and tmpfs usage

This commit is contained in:
Tk-Glitch
2023-09-05 01:37:45 +02:00
parent 1a69f04e6e
commit f63f1caaf4

View File

@@ -11,10 +11,10 @@ env:
PKGDEST: "/tmp/linux-tkg" PKGDEST: "/tmp/linux-tkg"
_debugdisable: "true" _debugdisable: "true"
_noccache: "true" _noccache: "true"
_STRIP: "false" _STRIP: "true"
_kernel_on_diet: "true" _kernel_on_diet: "true"
#_kernel_work_folder: "/tmp" _kernel_work_folder: "/tmp"
#_kernel_source_folder: "/tmp" _kernel_source_folder: "/tmp"
# _modprobeddb: "true" # _modprobeddb: "true"
# _modprobeddb_db_path: ${{ github.workspace }}/modprobed.db # _modprobeddb_db_path: ${{ github.workspace }}/modprobed.db
@@ -125,11 +125,58 @@ jobs:
name: kernel-packages-${{ env._cpusched }} name: kernel-packages-${{ env._cpusched }}
path: ${{ env.PKGDEST }}/linux*.pkg.tar.zst path: ${{ env.PKGDEST }}/linux*.pkg.tar.zst
build-bore-eevdf:
env:
_cpusched: "bore-eevdf"
runs-on: ubuntu-latest
container: archlinux:latest
needs: [check-for-newer-kernel, cleanup-ubuntu]
if: |
github.ref == 'refs/heads/master' &&
needs.check-for-newer-kernel.outputs.new_kernel == '0'
steps:
# We need to install git so the checkout is done with it
- name: Install git
run: pacman -Syu --noconfirm git
- name: Checkount linux-tkg
uses: actions/checkout@v3.0.2
# 1. Install deps needed for building and sudo
# 2. create a user "user" and give it passwordless sudo
# and necessary permissions
# because makepkg absolutely refuses to run as root
- name: Prepare for makepkg
run: |
pacman -Syu --noconfirm base-devel sudo
useradd user -G wheel && echo "user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
chown user -R ..
chown user -R /tmp
# - name: "[debug] make dummy modprobed-db file for faster ci"
# run: |
# touch "${_modprobeddb_db_path}"
# echo "${_modprobeddb_db_path}"
- name: Compile Kernel
run: su user -c "yes '' | makepkg --noconfirm -s"
# run: |
# mkdir -p "$PKGDEST"
# echo "test" > "$PKGDEST"/linux-$_cpusched.pkg.tar.zst
- uses: actions/upload-artifact@v3
with:
name: kernel-packages-${{ env._cpusched }}
path: ${{ env.PKGDEST }}/linux*.pkg.tar.zst
make-release: make-release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [check-for-newer-kernel, cleanup-ubuntu, "build-cfs"] needs: [check-for-newer-kernel, cleanup-ubuntu, "build-cfs", "build-eevdf"]
steps: steps:
- name: Download release artifacts - name: Download release artifacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3