All checks were successful
Build Custom Kernel / build-kernel (push) Successful in 45s
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: Build Custom Kernel
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build-kernel:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Nix
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y \
|
|
curl \
|
|
git \
|
|
xz-utils \
|
|
ca-certificates
|
|
curl -L https://nixos.org/nix/install | sh -s -- --daemon
|
|
|
|
# - name: Build custom kernel
|
|
# run: |
|
|
# export NIX_BUILD_CORES=0
|
|
# nix-build '<nixpkgs/nixos>' -A config.system.build.kernel --arg configuration ./custom-kernel.nix
|
|
# env:
|
|
# PATH: /nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/bin:/sbin:/usr/bin:/usr/sbin
|
|
|
|
- name: Create dummy files
|
|
run: |
|
|
mkdir -p ./result
|
|
echo "This is a dummy file" > ./result/dummy-file.txt
|
|
|
|
- name: Zip kernel artifacts
|
|
run: zip -r custom-kernel.zip ./result
|
|
|
|
- name: Upload kernel artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: custom-kernel
|
|
path: ./custom-kernel.zip |