-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.55 KB
/
build-images.yml
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
name: Build Images
on:
push:
branches:
- main # Trigger on any push to the main branch
workflow_dispatch: # Allow manual triggers
jobs:
armbian-images:
runs-on: macos-latest # Use a GitHub-hosted runner
steps:
# Checkout this repository
- name: Checkout repository
uses: actions/checkout@v3
# Checkout the Armbian build repository
- name: Checkout Armbian Build Repository
uses: actions/checkout@v3
with:
repository: armbian/build
ref: main # Use the main branch of the Armbian repository
path: armbian-build # Check out the Armbian repository to this subdirectory
- name: Copy Userpatches
run: |
mkdir -p armbian-build/userpatches
cp -r 2025/realsense/customize-image.sh armbian-build/userpatches/
working-directory: ${{ github.workspace }}
- name: Build Armbian Image
run: |
./compile.sh build BOARD=orangepi5 BRANCH=vendor BUILD_DESKTOP=no BUILD_MINIMAL=no KERNEL_CONFIGURE=no RELEASE=jammy COMPRESS_OUTPUTIMAGE=sha,gz
working-directory: ${{ github.workspace }}/armbian-build
- name: Archive Build Artifacts
run: |
mkdir -p ${{ github.workspace }}/artifacts
cp armbian-build/output/images/*.img.gz ${{ github.workspace }}/artifacts/
working-directory: ${{ github.workspace }}
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: armbian-images
path: ${{env.GITHUB_WORKSPACE}}/artifacts