Makefile: Build shared library. #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
vm: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Runs a set of commands using the runners shell | |
- name: Start build | |
run: echo Beginning build | |
container: | |
runs-on: ubuntu-latest | |
container: debian:11 | |
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: Build CAMI and execute simple demo | |
run: | | |
cd /usr/src | |
git clone https://github.com/InterLinked1/cami.git | |
cd cami | |
make | |
./cami |