Makefile: Change optimization level back to O3. (#10) #80
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: | |
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 |