Build test by pull_request #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build test with SDK | |
run-name: Build test by ${{github.event_name}} | |
on: [pull_request, push] | |
env: | |
PERSIST_DIR: /srv/gh-runners/quic-qrb-ros | |
DL_DIR: /srv/gh-runners/quic-qrb-ros/downloads | |
WORKSPACE: ${{ github.workspace }}/ros_ws | |
SDK_DIR: ${{ github.workspace }}/sdk | |
jobs: | |
include-sdk-setup: | |
uses: ./.github/workflows/sdk-setup.yaml | |
build: | |
needs: include-sdk-setup | |
runs-on: [self-hosted, x86] | |
steps: | |
- name: Download dependencies | |
run: | | |
cd ${WORKSPACE} | |
git clone https://github.com/quic-qrb-ros/lib_mem_dmabuf.git | |
git clone https://github.com/quic-qrb-ros/qrb_ros_transport.git | |
- name: build | |
run: | | |
cd ${SDK_DIR} | |
umask 022 | |
. environment-setup-armv8-2a-qcom-linux | |
cd ${WORKSPACE} | |
export AMENT_PREFIX_PATH="${OECORE_TARGET_SYSROOT}/usr;${OECORE_NATIVE_SYSROOT}/usr" | |
export PYTHONPATH=${PYTHONPATH}:${OECORE_TARGET_SYSROOT}/usr/lib/python3.10/site-packages | |
colcon build --merge-install --cmake-args \ | |
-DPython3_ROOT_DIR=${OECORE_TARGET_SYSROOT}/usr \ | |
-DPython3_NumPy_INCLUDE_DIR=${OECORE_TARGET_SYSROOT}/usr/lib/python3.10/site-packages/numpy/core/include \ | |
-DPYTHON_SOABI=cpython-310-aarch64-linux-gnu -DCMAKE_STAGING_PREFIX=$(pwd)/install \ | |
-DCMAKE_PREFIX_PATH=$(pwd)/install/share \ | |
-DBUILD_TESTING=OFF | |