mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-10-31 23:26:22 +00:00
4999d38194
Improve support for RISC-V arch in volk_gnsssdr via cpu_features (updated to c919e9a). Set BLA_PREFER_PKGCONFIG if not defined by the user, helps to find lapack in some archs (e.g., riscv64) Fix for Fedora/OpenSUSE, which do not install cpu_features along volk. Remove volk_gnsssdr_8ic_s8ic_multiply_8ic kernel since it was problematic in some archs Improve Python detection Fixes for GCC 13 Remove ENABLE_GENERIC_ARCH configuration option and old ARM detection mechanism Update gtest to 1.13.0 Add CI jobs for volk_gnsssdr and gnss-sdr in non-x86 archs
81 lines
2.8 KiB
YAML
81 lines
2.8 KiB
YAML
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
# SPDX-FileCopyrightText: 2023 Carles Fernandez-Prades <carles.fernandez@cttc.es>
|
|
|
|
name: Run volk_gnsssdr tests
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/**"
|
|
- "CMakeLists.txt"
|
|
pull_request:
|
|
paths:
|
|
- "src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/**"
|
|
- "CMakeLists.txt"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-ubuntu-non-x86:
|
|
runs-on: ubuntu-latest
|
|
name: ${{ matrix.distro }} ${{ matrix.arch }} ${{ matrix.compiler.name }}
|
|
|
|
# Run steps on a matrix of archs.
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- arch: aarch64
|
|
distro: ubuntu22.04
|
|
compiler: { name: g++-12, cc: gcc-12, cxx: g++-12 }
|
|
- arch: aarch64
|
|
distro: ubuntu22.04
|
|
compiler: { name: clang-14, cc: clang-14, cxx: clang++-14 }
|
|
- arch: armv7
|
|
distro: ubuntu22.04
|
|
compiler: { name: g++-12, cc: gcc-12, cxx: g++-12 }
|
|
- arch: ppc64le
|
|
distro: ubuntu22.04
|
|
compiler: { name: g++-12, cc: gcc-12, cxx: g++-12 }
|
|
- arch: s390x
|
|
distro: ubuntu22.04
|
|
compiler: { name: g++-12, cc: gcc-12, cxx: g++-12 }
|
|
- arch: riscv64
|
|
distro: ubuntu22.04
|
|
compiler: { name: g++-12, cc: gcc-12, cxx: g++-12 }
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3.1.0
|
|
- uses: uraimo/run-on-arch-action@v2.5.0
|
|
name: Build in non-x86 container
|
|
# continue-on-error: ${{ contains(fromJson('["ppc64le", "s390x"]'), matrix.arch) }}
|
|
id: build
|
|
with:
|
|
arch: ${{ matrix.arch }}
|
|
distro: ${{ matrix.distro }}
|
|
githubToken: ${{ github.token }} # Not required, but speeds up builds
|
|
setup: |
|
|
mkdir -p "${PWD}/testing"
|
|
dockerRunArgs: |
|
|
--volume "${PWD}:/volk_gnsssdr"
|
|
env: |
|
|
CC: ${{ matrix.compiler.cc }}
|
|
CXX: ${{ matrix.compiler.cxx }}
|
|
shell: /bin/sh
|
|
install: |
|
|
apt-get update -q -y
|
|
apt-get install -q -y git cmake python3-mako liborc-dev ${{ matrix.compiler.name }}
|
|
run: |
|
|
git config --global --add safe.directory /volk_gnsssdr
|
|
cd /volk_gnsssdr
|
|
cd testing
|
|
cmake ../src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/
|
|
echo "Build with $(nproc) thread(s)"
|
|
make -j$(nproc)
|
|
./cpu_features/list_cpu_features
|
|
./apps/volk_gnsssdr-config-info --alignment
|
|
./apps/volk_gnsssdr-config-info --avail-machines
|
|
./apps/volk_gnsssdr-config-info --all-machines
|
|
./apps/volk_gnsssdr-config-info --malloc
|
|
./apps/volk_gnsssdr-config-info --cc
|
|
ctest -V
|