-
-
Notifications
You must be signed in to change notification settings - Fork 2
75 lines (72 loc) · 2.14 KB
/
main.yml
File metadata and controls
75 lines (72 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: CI
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master, dev ]
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
name: Debian 12
container: debian:12
steps:
- name: Build Asterisk
run: |
cd /usr/src
apt-get update -y
apt-get install -y wget
wget https://raw.githubusercontent.com/InterLinked1/phreakscript/refs/heads/master/phreaknet.sh
chmod +x phreaknet.sh
./phreaknet.sh make
phreaknet update
phreaknet install --fast --lightweight
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
sleep 1
/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
run: |
dnf install -y make gcc
make
make install
make examples
freebsd-14:
runs-on: ubuntu-24.04
name: FreeBSD
steps:
- uses: actions/checkout@v4
- name: Build CAMI
uses: vmactions/freebsd-vm@v1
with:
usesh: true
run: |
pkg install -y gcc gmake
gmake
gmake install
gmake examples