Skip to content

Commit

Permalink
Restore main.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Oct 5, 2024
1 parent e6dc354 commit 4b8b7f6
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 78 deletions.
93 changes: 93 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# This is a basic workflow to help you get started with Actions

name: Main CI

# Controls when the action will run.
on:
# Triggers the workflow on all push or pull request events
push:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
continue-on-error: true
container:
image: ubuntu:${{ matrix.os }}
env:
COMPILER: ${{ matrix.compiler }}
BUILD_OS: ubuntu-${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [20.04, 22.04, 24.04]
compiler: ['gcc', 'clang']
include:
- os: 20.04
compiler: 'gcc-9'
- os: 20.04
compiler: 'gcc-10'
- os: 20.04
compiler: 'clang-9'
- os: 20.04
compiler: 'clang-10'
- os: 22.04
compiler: 'gcc-11'
- os: 22.04
compiler: 'gcc-12'
- os: 22.04
compiler: 'clang-11'
- os: 22.04
compiler: 'clang-12'
- os: 22.04
compiler: 'clang-13'
- os: 22.04
compiler: 'clang-14'
- os: 22.04
compiler: 'clang-15'
- os: 24.04
compiler: 'clang-16'
- os: 24.04
compiler: 'clang-17'

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Install git
run: |
apt-get update
apt-get install -y git lsb-release gnupg2 wget
# 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

notify:
runs-on: ubuntu-latest
needs: build
steps:
- name: Notify slack fail
if: failure() && github.repository == 'OpenSIPS/opensips'
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel: devel
status: FAILED
color: danger
78 changes: 0 additions & 78 deletions .github/workflows/rtp.io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,85 +13,7 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: ubuntu:${{ matrix.os }}
env:
COMPILER: ${{ matrix.compiler }}
BUILD_OS: ubuntu-${{ matrix.os }}

strategy:
matrix:
os: [20.04, 22.04, 24.04]
compiler: ['gcc', 'clang']
include:
- os: 20.04
compiler: 'gcc-9'
- os: 20.04
compiler: 'gcc-10'
- os: 20.04
compiler: 'clang-9'
- os: 20.04
compiler: 'clang-10'
- os: 22.04
compiler: 'gcc-11'
- os: 22.04
compiler: 'gcc-12'
- os: 22.04
compiler: 'clang-11'
- os: 22.04
compiler: 'clang-12'
- os: 22.04
compiler: 'clang-13'
- os: 22.04
compiler: 'clang-14'
- os: 22.04
compiler: 'clang-15'
- os: 24.04
compiler: 'clang-16'
- os: 24.04
compiler: 'clang-17'

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Install git
run: |
apt-get update
apt-get install -y git lsb-release gnupg2 wget
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
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: Get rtppproxy code
run: |
git clone https://github.com/sippy/rtpproxy.git
git -C rtpproxy submodule update --init --recursive
- name: Build and install librtpproxy
run: |
apt-get install -y libsrtp2-dev file pkg-config
cd rtpproxy && (../scripts/build/build.conf.sub; ./configure --enable-librtpproxy)
make all
make install
- name: Build rtp.io module
run: ONE_MODULE=rtp.io sh -x scripts/build/do_build.sh

build_in_docker:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
Expand Down

0 comments on commit 4b8b7f6

Please sign in to comment.