Skip to content

Python wrapping and Protocol Decode #51

Python wrapping and Protocol Decode

Python wrapping and Protocol Decode #51

Workflow file for this run

name: Build OSX binaries
on: [push, pull_request]
jobs:
osx:
runs-on: macos-12
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: actions/checkout@v3
- run: brew install zmq sdl2 libelf protobuf meson ninja
- run: git clone https://github.com/pybind/pybind11.git
working-directory: ext/orbetto
- run: git clone https://github.com/puddly/ripyl.git # Ripyl is a Protocol Decoder Python Library
working-directory: ext/orbetto
- run: sudo pip3 install scipy # Python dependency for Ripyl
- run: sudo pip3 install numpy # Python dependency for Ripyl
- run: sudo pip3 install setuptools==45 # Ripyl needs setuptools 45 to install
- run: python3 setup.py install # Install Ripyl
working-directory: ext/orbetto/ripyl # in the source directory
- run: sudo pip3 install pandas # Python dependency for fast data analysis
- run: sudo pip3 install pyelftools # Python dependency for elf file analysis
- run: sudo pip3 install cxxfilt # Python dependency for c++ function name demangling
- run: meson setup ./build
working-directory: ext/orbetto
- run: ninja -C ./build
working-directory: ext/orbetto
- run: meson install -C ./build --destdir ./install
working-directory: ext/orbetto
- uses: actions/upload-artifact@v3
with:
name: orbetto-osx
path: ext/orbetto/build/install/**/*
if-no-files-found: error
- run: mkdir buffer
- run: curl -L https://github.com/niklaut/orbetto-support-files/raw/main/mosi.csv.zip | funzip > buffer/mosi.csv
- run: curl -L https://github.com/niklaut/orbetto-support-files/raw/main/miso.csv.zip | funzip > buffer/miso.csv
- run: curl -L https://github.com/niklaut/orbetto-support-files/raw/main/cs.csv.zip | funzip > buffer/cs.csv
- run: curl -L https://github.com/niklaut/orbetto-support-files/raw/main/clk.csv.zip | funzip > buffer/clk.csv
- run: curl -L https://github.com/niklaut/orbetto-support-files/raw/main/sync.csv.zip | funzip > buffer/sync.csv
- run: curl -L https://github.com/niklaut/orbetto-support-files/raw/main/trace.swo.zip | funzip > trace.swo
- run: curl -L https://github.com/niklaut/orbetto-support-files/raw/main/px4_fmu-v5x_default.elf.zip | funzip > px4_fmu-v5x_default.elf
- run: python3 ext/orbetto/orbethon.py -f trace.swo -e px4_fmu-v5x_default.elf --enable_spi_debug -dd
- uses: actions/upload-artifact@v4
with:
name: test_output
path: orbetto.perf
if-no-files-found: error