diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 87206331d7..ce84363a69 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -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 \ No newline at end of file + sudo docker/scripts/install_dependencies.sh + - name: Build srsRAN Project on x86 ${{ matrix.os }} with compiler ${{ matrix.compiler }} + run: | + sudo docker/scripts/builder.sh -c ${{ matrix.compiler }} -m "-j$(nproc) install" . + - 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 \ No newline at end of file diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 82e64c42fc..482dff78cf 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -9,6 +9,7 @@ on: jobs: docker: + if: ${{ vars.SKIP_DOCKER_JOB != 'true' }} runs-on: ubuntu-latest strategy: matrix: