-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.01 KB
/
build-kernel.yml
File metadata and controls
49 lines (40 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Build Kernel
on:
pull_request:
push:
branches:
- master
jobs:
toolchain:
uses: ./.github/workflows/build-toolchain.yml
build:
name: Build kernel
runs-on: ubuntu-latest
needs: toolchain
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install toolchain
uses: actions/cache@v4
with:
key: ${{ needs.toolchain.outputs.cache-key-toolchain }}
path: build/root
- name: Install Nix
uses: cachix/install-nix-action@v17
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Configure (i686)
run: |
cp defconfigs/config.i686 .config
- name: Build Kernel
run: |
nix develop --command make kernel
- name: Build initramfs
run: |
mkdir -p dev
tar cvf initramfs.tar dev
- name: Build ISO
run: |
nix develop --command make iso