mirror of
https://github.com/nasa/fprime.git
synced 2025-12-11 04:35:25 -06:00
Add System Reference to CI (#3466)
* Initial workflow for system reference ext build * add default branch to checkout * fix directory * try to fix path * fix * undo prev change * debugging * remove system ref path * add rpi toolchain dir to path * fix step * rename var * update path * update path * update toolchain version * add ply * add pkg config path to env * update dirs * fix pkgconfig path * fix typo * remove -j arg * try with my branch * cleanup * one more test * undo prev change * Update spelling * Update default branch
This commit is contained in:
parent
637e812d59
commit
395ff76a7a
1
.github/actions/spelling/expect.txt
vendored
1
.github/actions/spelling/expect.txt
vendored
@ -463,6 +463,7 @@ INVALIDHEADERHASH
|
||||
invisi
|
||||
ioc
|
||||
ioctl
|
||||
ipas
|
||||
IPCFG
|
||||
IPHELPER
|
||||
ipriority
|
||||
|
||||
75
.github/workflows/ext-raspberry-system-reference.yml
vendored
Normal file
75
.github/workflows/ext-raspberry-system-reference.yml
vendored
Normal file
@ -0,0 +1,75 @@
|
||||
# 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/**'
|
||||
|
||||
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
|
||||
Loading…
x
Reference in New Issue
Block a user