Skip to content

ci/build: bump actions (fix pr dependency title detection) #138

ci/build: bump actions (fix pr dependency title detection)

ci/build: bump actions (fix pr dependency title detection) #138

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
compiler: [gcc, clang]
os: [ubuntu-20.04, ubuntu-22.04, macos-latest]
exclude:
- os: macos-latest
compiler: gcc
env:
CC: ${{ matrix.compiler }}
MACOSX_DEPLOYMENT_TARGET: "10.10"
steps:
- uses: actions/checkout@v4
- name: openssl path macos
if: ${{ runner.os == 'macOS' }}
run: |
echo "OPENSSL_ROOT_DIR=/usr/local/opt/openssl" >> $GITHUB_ENV
- name: Fix Ubuntu 22.04
if: ${{ matrix.os == 'ubuntu-22.04' }}
run: |
sudo apt-get remove libunwind-14 -y
sudo apt-get install libunwind-dev -y
- name: install packages
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get update && sudo apt-get install -y libavcodec-dev \
libavdevice-dev \
libavformat-dev \
libgtk-3-dev \
libjack-jackd2-dev \
libmosquitto-dev \
libmpg123-dev \
libopus-dev \
libpulse-dev \
libsndfile1-dev \
libspandsp-dev \
libssl-dev \
libglib2.0-dev \
libopencore-amrnb-dev \
libopencore-amrwb-dev \
libgstreamer1.0-dev \
libvpx-dev
- name: install aac
if: ${{ matrix.os == 'ubuntu-20.04' }}
run: |
sudo apt-get update && sudo apt-get install -y libfdk-aac-dev
- name: install packages
if: ${{ runner.os == 'macOS' }}
run: |
brew install codec2 \
fdk-aac \
ffmpeg \
jack \
mpg123 \
spandsp \
glib-utils
- uses: sreimers/pr-dependency-action@v1
with:
name: re
repo: https://github.com/baresip/re
secret: ${{ secrets.GITHUB_TOKEN }}
- uses: sreimers/pr-dependency-action@v1
with:
name: baresip
repo: https://github.com/baresip/baresip
secret: ${{ secrets.GITHUB_TOKEN }}
- name: make re/baresip
run: |
cmake -S re -B re/build
cmake --build re/build -j
cmake -S baresip -B baresip/build -DMODULES=
cmake --build baresip/build -j -t baresip
for p in re baresip; do
mv $p ../.
done
- name: ldconfig
if: ${{ runner.os == 'Linux' }}
run: sudo ldconfig
- name: make baresip-apps linux
if: ${{ runner.os == 'Linux' }}
run: |
cmake -B build -DCMAKE_C_FLAGS="-Werror" && cmake --build build -j
- name: make baresip-apps macOS
if: ${{ runner.os == 'macOS' }}
run: |
cmake -B build -DCMAKE_C_FLAGS="-Werror" && cmake --build build -j