Skip to content

CI: Add additional CI for non-Debian systems. #79

CI: Add additional CI for non-Debian systems.

CI: Add additional CI for non-Debian systems. #79

Workflow file for this run

name: CI
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# 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:
debian-12:
runs-on: ubuntu-latest
container: debian:12
steps:
- name: Build Asterisk
run: |
cd /usr/src
apt-get update -y
apt-get install -y wget
wget https://docs.phreaknet.org/script/phreaknet.sh
chmod +x phreaknet.sh
./phreaknet.sh make
phreaknet update
phreaknet install
echo "" > /etc/asterisk/manager.conf
echo "[general]" >> /etc/asterisk/manager.conf
echo "enabled = yes" >> /etc/asterisk/manager.conf
echo "bindaddr = 127.0.0.1" >> /etc/asterisk/manager.conf
echo "[test]" >> /etc/asterisk/manager.conf
echo "secret=test" >> /etc/asterisk/manager.conf
echo "read=all" >> /etc/asterisk/manager.conf
echo "write=all" >> /etc/asterisk/manager.conf
/etc/init.d/asterisk restart
sleep 3
- name: Checkout
uses: actions/checkout@v4
- name: Build CAMI and execute simple demo
run: |
make
make install
make examples
./simpleami
fedora-42:
runs-on: ubuntu-24.04
name: Fedora 42
container: fedora:42
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build CAMI and execute simple demo
run: |
dnf install -y make gcc
make
make install
make examples