This commit is contained in:
parent
07a444d088
commit
4b15077540
1 changed files with 46 additions and 0 deletions
46
.forgejo/workflows/bbb.yml
Normal file
46
.forgejo/workflows/bbb.yml
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
name: BeagleBone Black Buildroot
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:act-22.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y build-essential libncurses5-dev rsync unzip bc wget cpio python3 python3-pip file
|
||||
|
||||
- name: Configure Buildroot
|
||||
run: |
|
||||
make beaglebone_defconfig
|
||||
|
||||
- name: Build system
|
||||
run: |
|
||||
make -j$(nproc)
|
||||
|
||||
- name: Create artifact directory
|
||||
run: |
|
||||
mkdir -p artifacts
|
||||
cp output/images/zImage artifacts/
|
||||
cp output/images/rootfs.ext2 artifacts/
|
||||
cp output/images/am335x-boneblack.dtb artifacts/
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: beaglebone-black-images
|
||||
path: artifacts/
|
||||
|
||||
|
||||
Loading…
Add table
Reference in a new issue