-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathext-raspberry-system-reference.yml
More file actions
79 lines (74 loc) · 2.65 KB
/
Copy pathext-raspberry-system-reference.yml
File metadata and controls
79 lines (74 loc) · 2.65 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Cross-compile https://github.com/fprime-community/fprime-system-reference
name: "External Repo: System Reference"
on:
push:
branches: [ devel, release/** ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ devel, release/** ]
paths-ignore:
- 'docs/**'
- '**.md'
- '.github/actions/spelling/**'
- '.github/ISSUE_TEMPLATE/**'
# Cancel in-progress runs if a newer run is started on a given PR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'devel') && !contains(github.ref, 'release/')}}
env:
RPI_TOOLCHAIN_DIR: /tmp/rpi-toolchain
PKG_CONFIG_PATH: ${{ github.workspace }}/libcamera/build/lib/pkgconfig/
jobs:
get-branch:
name: "Get target branch"
uses: ./.github/workflows/reusable-get-pr-branch.yml
with:
target_repository: fprime-community/fprime-system-reference
default_target_ref: main
cross-compilation:
name: "Cross Compilation"
runs-on: ubuntu-22.04
needs: get-branch
steps:
- name: "Checkout target repository"
uses: actions/checkout@v4
with:
submodules: true
repository: fprime-community/fprime-system-reference
ref: ${{ needs.get-branch.outputs.target-branch }}
- name: "Overlay current F´ revision"
uses: actions/checkout@v4
with:
submodules: true
path: ./fprime
fetch-depth: 0
- uses: ./fprime/.github/actions/setup
with:
location: ./fprime
- name: "Install meson and ninja"
run: |
pip3 install meson ninja ply
shell: bash
- name: "Setup RPI Toolchain"
uses: fprime-community/setup-rpi-sysroot@main
with:
# libcamera requires 8+
toolchain: "https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz"
- name: "Add RPI Toolchain to PATH"
run: |
echo "PATH=$RPI_TOOLCHAIN_DIR/bin:$PATH" >> $GITHUB_ENV
- name: Build libcamera
run: |
cd libcamera
meson setup build -Dprefix=${{ github.workspace }}/libcamera/build/ -Dpipelines=rpi/vc4 -Dipas=rpi/vc4 --cross-file ../libcamera-aarch32.txt
cd build
ninja
ninja install
- name: "Generate System Reference build cache"
working-directory: SystemReference
run: |
fprime-util generate raspberrypi
- name: "Build System Reference"
working-directory: SystemReference
run: |
fprime-util build raspberrypi