Skip to content

Commit

Permalink
action: add risc-v test on Ubuntu
Browse files Browse the repository at this point in the history
RISC-V is going to be one of the officially supported archtiecture, soon.
Test it and reject a PR if it breaks RISC-V builds.

Signed-off-by: MyungJoo Ham <[email protected]>
  • Loading branch information
myungjoo committed Jun 13, 2024
1 parent e36c30b commit da684cc
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/risc-v.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test RISCV64 on Ubuntu

on:
pull_request:
branches: [ main ]

jobs:
build_job:
runs-on: ubuntu-20.04
name: Build on Ubuntu 20.04 RISC-V 64
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check if rebuild required
uses: ./.github/actions/check-rebuild
with:
mode: rebuild
- uses: nnstreamer/run-on-arch-action@master
name: Run commands
if: env.rebuild == '1'
id: Build
with:
arch: riscv64
distro: ubuntu20.04
githubToken: ${{ github.token }}
run: |
apt-get -qy update
apt-get -qy install meson ninja-build libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libglib2.0-dev libjson-glib-dev gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-plugins-good libgtest-dev libpng-dev libopencv-dev python3 python3-dev python3-numpy pkg-config gcc g++ liblua5.1-dev bash wget libpng-dev
bash .github/workflows/get_ssat.sh
meson build -Denable-tizen=false -Denable-test=true
ninja -C build
export NNSTREAMER_SOURCE_ROOT_PATH=$(pwd)
export NNSTREAMER_BUILD_ROOT_PATH=$(pwd)/build
export GST_PLUGIN_PATH=${NNSTREAMER_BUILD_ROOT_PATH}/gst:${NNSTREAMER_BUILD_ROOT_PATH}/ext
export NNSTREAMER_CONF=${NNSTREAMER_BUILD_ROOT_PATH}/nnstreamer-test.ini
export NNSTREAMER_FILTERS=${NNSTREAMER_BUILD_ROOT_PATH}/ext/nnstreamer/tensor_filter
export NNSTREAMER_DECODERS=${NNSTREAMER_BUILD_ROOT_PATH}/ext/nnstreamer/tensor_decoder
export NNSTREAMER_CONVERTERS=${NNSTREAMER_BUILD_ROOT_PATH}/ext/nnstreamer/tensor_converter
export NNSTREAMER_TRAINERS=${NNSTREAMER_BUILD_ROOT_PATH}/ext/nnstreamer/tensor_trainer
bash ./packaging/run_unittests_binaries.sh -k unittest_filter_python3 ./tests
cd tests/nnstreamer_converter && ssat && cd ../..

0 comments on commit da684cc

Please sign in to comment.