From 9d44a9affcd1dd366dcc0905c5198fa5e7441d47 Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Sat, 15 Jun 2024 20:06:38 -0700 Subject: [PATCH] Add dockerized build. --- .github/workflows/rtp.io.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/rtp.io.yml b/.github/workflows/rtp.io.yml index 0830daee8f5..20293fb9172 100644 --- a/.github/workflows/rtp.io.yml +++ b/.github/workflows/rtp.io.yml @@ -76,3 +76,35 @@ jobs: - name: Build rtp.io module run: make -C modules/rtp.io + + build_in_docker: + # The type of runner that the job will run on + runs-on: ubuntu-latest + container: + image:sippylabs/rtpproxy + continue-on-error: true + env: + COMPILER: ${{ matrix.compiler }} + BUILD_OS: ubuntu-latest + + strategy: + fail-fast: false + matrix: + compiler: ['gcc', 'clang', 'gcc-11', 'gcc-12', 'clang-11', 'clang-12', 'clang-13', 'clang-14', 'clang-15'] + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Install dependencies + run: | + sh -x scripts/build/reset_sources.sh + sh -x scripts/build/install_depends.sh + + - name: Build + run: sh -x scripts/build/do_build.sh + + - name: Build rtp.io module + run: make -C modules/rtp.io