mirror of https://github.com/PentHertz/srsLTE.git
update GH action and Travis config
- enable Ninja in builds - build clang/gcc - build on Ubuntu 16.04 in GH - build on Bionic in Travis
This commit is contained in:
parent
2eb6145b99
commit
d60d8fead4
|
@ -1,21 +1,34 @@
|
||||||
name: C/C++ CI
|
name: C/C++ CI
|
||||||
on: push
|
on: push
|
||||||
jobs:
|
jobs:
|
||||||
x86_build:
|
x86_ubuntu18_build:
|
||||||
name: Build and test on x86
|
name: Build and test on x86 Ubuntu 18.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
cc: [ gcc ]
|
cc: [ gcc ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Build srsLTE on x86
|
- name: Build srsLTE on x86
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y build-essential cmake libfftw3-dev libmbedtls-dev libpcsclite-dev libboost-program-options-dev libconfig++-dev libsctp-dev colordiff ninja-build valgrind
|
sudo apt install -y build-essential cmake libfftw3-dev libmbedtls-dev libpcsclite-dev libboost-program-options-dev libconfig++-dev libsctp-dev colordiff ninja-build valgrind
|
||||||
mkdir build && cd build && cmake -GNinja .. && ninja && ctest -T memcheck
|
mkdir build && cd build && cmake -DRF_FOUND=True -GNinja .. && ninja && ctest -T memcheck
|
||||||
|
x86_ubuntu16_build:
|
||||||
|
name: Build and test on x86 Ubuntu 16.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
cc: [ gcc ]
|
||||||
|
runs-on: ubuntu-16.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Build srsLTE on x86
|
||||||
|
run: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y build-essential cmake libfftw3-dev libmbedtls-dev libpcsclite-dev libboost-program-options-dev libconfig++-dev libsctp-dev colordiff ninja-build valgrind
|
||||||
|
mkdir build && cd build && cmake -DRF_FOUND=True -GNinja .. && ninja && ctest -T memcheck
|
||||||
|
|
||||||
aarch64_build:
|
aarch64_ubuntu18_build:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
name: Build on aarch64
|
name: Build on aarch64
|
||||||
steps:
|
steps:
|
||||||
|
@ -28,4 +41,4 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
apt update
|
apt update
|
||||||
apt install -y build-essential cmake libfftw3-dev libmbedtls-dev libpcsclite-dev libboost-program-options-dev libconfig++-dev libsctp-dev ninja-build
|
apt install -y build-essential cmake libfftw3-dev libmbedtls-dev libpcsclite-dev libboost-program-options-dev libconfig++-dev libsctp-dev ninja-build
|
||||||
ls -l && pwd && mkdir build && cd build && cmake -GNinja .. && ninja
|
ls -l && pwd && mkdir build && cd build && cmake -DRF_FOUND=True -GNinja .. && ninja
|
||||||
|
|
30
.travis.yml
30
.travis.yml
|
@ -1,30 +1,12 @@
|
||||||
dist: xenial
|
dist: bionic
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- sudo apt-get -qq update
|
- sudo apt-get -qq update
|
||||||
- sudo apt-get install -qq build-essential cmake libfftw3-dev libmbedtls-dev libpcsclite-dev libboost-program-options-dev libconfig++-dev libsctp-dev colordiff
|
- sudo apt-get install -qq build-essential cmake libfftw3-dev libmbedtls-dev libpcsclite-dev libboost-program-options-dev libconfig++-dev libsctp-dev colordiff ninja-build
|
||||||
|
|
||||||
language: cpp
|
language: cpp
|
||||||
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
# works on Precise and Trusty
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- llvm-toolchain-trusty-8
|
|
||||||
- key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
|
|
||||||
packages:
|
|
||||||
- clang-format-8
|
|
||||||
- clang-8
|
|
||||||
env:
|
|
||||||
- MATRIX_EVAL="CC=clang-8 && CXX=clang++-8"
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- eval "${MATRIX_EVAL}"
|
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
- clang
|
- clang
|
||||||
|
@ -52,7 +34,7 @@ script:
|
||||||
fi
|
fi
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- cmake -DRF_FOUND=True ..
|
- cmake -DRF_FOUND=True -G Ninja ..
|
||||||
- make
|
- ninja
|
||||||
- make test
|
- ninja test
|
||||||
- sudo make install
|
- sudo ninja install
|
||||||
|
|
Loading…
Reference in New Issue