-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.23 KB
/
build-kernel.yml
File metadata and controls
54 lines (46 loc) · 1.23 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
50
51
52
53
54
name: Build Musl-LFS Kernel
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential bison flex libssl-dev libelf-dev bc
- name: Set up build environment
run: |
export MLFS=/mnt/mlfs
export MLFS_TARGET=x86_64-mlfs-linux-musl
- name: Build cross-tools
run: |
if [ -d "build-scripts" ]; then
cd build-scripts
chmod +x *.sh
# Run cross-tools build if script exists
if [ -f "build-cross-tools.sh" ]; then
./build-cross-tools.sh
fi
fi
- name: Build tools
run: |
if [ -d "build-scripts" ]; then
cd build-scripts
# Run tools build if script exists
if [ -f "build-tools.sh" ]; then
./build-tools.sh
fi
fi
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: mlfs-build-artifacts
path: |
/tools/
/cross-tools/
retention-days: 7