Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing actions #897

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,22 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, ubuntu-24.04]
compiler: [gcc, clang]
os: [ubuntu-24.04]
compiler: [clang]
steps:
- uses: actions/checkout@v3
- name: Build srsRAN Project on x86 ${{ matrix.os }}
- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y cmake make gcc g++ pkg-config libfftw3-dev libmbedtls-dev libsctp-dev libyaml-cpp-dev libgtest-dev ninja-build
mkdir build && cd build && cmake -DENABLE_UHD=False -GNinja .. && ninja && ctest
sudo docker/scripts/install_dependencies.sh
- name: Build srsRAN Project on x86 ${{ matrix.os }} with compiler ${{ matrix.compiler }}
run: |
docker/scripts/builder.sh -c ${{ matrix.compiler }} -m "-j$(nproc)" .
- name: Run unit tests
run: |
cd build && ctest -j$(nproc) --schedule-random --output-on-failure --output-junit xunit.xml
- name: Report test results
uses: dorny/test-reporter@v1
with:
name: Unit Tests
path: build/xunit.xml
reporter: jest-junit
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
docker:
if: ${{ vars.SKIP_DOCKER_JOB != 'true' }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
Loading