Skip to content

Setup USB build environment and start automated build #2

Setup USB build environment and start automated build

Setup USB build environment and start automated build #2

Workflow file for this run

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