Skip to content

Commit 1faa6f6

Browse files
authored
testing actions
1 parent 9d5dd74 commit 1faa6f6

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.github/workflows/ccpp.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,22 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
os: [ubuntu-22.04, ubuntu-24.04]
19-
compiler: [gcc, clang]
18+
os: [ubuntu-24.04]
19+
compiler: [clang]
2020
steps:
2121
- uses: actions/checkout@v3
22-
- name: Build srsRAN Project on x86 ${{ matrix.os }}
22+
- name: Install Dependencies
2323
run: |
24-
sudo apt update
25-
sudo apt install -y cmake make gcc g++ pkg-config libfftw3-dev libmbedtls-dev libsctp-dev libyaml-cpp-dev libgtest-dev ninja-build
26-
mkdir build && cd build && cmake -DENABLE_UHD=False -GNinja .. && ninja && ctest
24+
sudo docker/scripts/install_dependencies.sh
25+
- name: Build srsRAN Project on x86 ${{ matrix.os }} with compiler ${{ matrix.compiler }}
26+
run: |
27+
sudo docker/scripts/builder.sh -c ${{ matrix.compiler }} -m "-j$(nproc) install" .
28+
- name: Run unit tests
29+
run: |
30+
cd build && ctest -j$(nproc) --schedule-random --output-on-failure --output-junit xunit.xml
31+
- name: Report test results
32+
uses: dorny/test-reporter@v1
33+
with:
34+
name: Unit Tests
35+
path: build/xunit.xml
36+
reporter: jest-junit

.github/workflows/docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
jobs:
1111
docker:
12+
if: ${{ vars.SKIP_DOCKER_JOB != 'true' }}
1213
runs-on: ubuntu-latest
1314
strategy:
1415
matrix:

0 commit comments

Comments
 (0)