first commit
This commit is contained in:
30
.gitea/build-kernel.yaml
Normal file
30
.gitea/build-kernel.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Build Custom Kernel
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-kernel:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Nix
|
||||
run: |
|
||||
curl -L https://nixos.org/nix/install | sh
|
||||
source ~/.nix-profile/etc/profile.d/nix.sh
|
||||
|
||||
- name: Build custom kernel
|
||||
run: |
|
||||
export NIX_BUILD_CORES=0
|
||||
nix-build '<nixpkgs/nixos>' -A config.system.build.kernel --arg configuration ./custom-kernel.nix
|
||||
|
||||
- name: Upload kernel artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: custom-kernel
|
||||
path: ./result
|
||||
Reference in New Issue
Block a user