Skip to content

Commit 8d4f77e

Browse files
authored
Merge pull request carbotaniuman#1 from PhotonVision/actions
Create Actions
2 parents 74f649a + 87cee65 commit 8d4f77e

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build driver
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
- 'releases/**'
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: pguyot/arm-runner-action@v2
16+
with:
17+
base_image: raspios_lite_arm64:latest
18+
cpu: cortex-a7
19+
image_additional_mb: 1500
20+
bind_mount_repository: true
21+
commands: |
22+
apt-get update
23+
apt-get install -y libopencv-dev libegl1-mesa-dev libcamera-dev cmake build-essential libdrm-dev libgbm-dev openjdk-11-jdk
24+
cmake -B build-pi -DCMAKE_BUILD_TYPE=Release
25+
cmake --build build-pi -j 4
26+
27+
- run: find .
28+
29+
- uses: actions/upload-artifact@master
30+
with:
31+
name: libcamera-driver
32+
path: build-pi/*.so
33+
- uses: actions/upload-artifact@master
34+
with:
35+
name: libcamera-meme
36+
path: build-pi/libcamera_meme

0 commit comments

Comments
 (0)