Skip to content

Commit

Permalink
gh_actions: enable gcc and clang builds, disable parallel ctest for x86
Browse files Browse the repository at this point in the history
parallel tests have caused weird problems on x86 with
"illegal instructions" during execution, seems
to work fine on arm instances though
  • Loading branch information
andrepuschmann committed May 9, 2020
1 parent 447b989 commit 12ffce3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,35 @@ jobs:
name: Build and test on x86 Ubuntu 18.04
strategy:
matrix:
cc: [ gcc ]
compiler: [gcc, clang]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Build srsLTE on x86 Ubuntu 18.04
run: |
export CTEST_PARALLEL_LEVEL=$(nproc --all)
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
x86_ubuntu16_build:
name: Build and test on x86 Ubuntu 16.04
strategy:
matrix:
cc: [ gcc ]
compiler: [gcc, clang]
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
- name: Build srsLTE on x86 Ubuntu 16.04
run: |
export CTEST_PARALLEL_LEVEL=$(nproc --all)
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_ubuntu18_build:
runs-on: ubuntu-18.04
name: Build on aarch64
strategy:
matrix:
compiler: [gcc, clang]
steps:
- uses: actions/checkout@v1
- name: Build srsLTE on aarch64
Expand All @@ -44,4 +45,4 @@ jobs:
export CTEST_PARALLEL_LEVEL=$(nproc --all)
apt update
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 -DRF_FOUND=True -GNinja .. && ninja
ls -l && pwd && mkdir build && cd build && cmake -DRF_FOUND=True -GNinja .. && ninja

0 comments on commit 12ffce3

Please sign in to comment.