-
Notifications
You must be signed in to change notification settings - Fork 16
130 lines (117 loc) · 3.72 KB
/
main.yml
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# This is a basic workflow to help you get started with Actions
name: Alice->SSUT->Bob
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
# branches: [ master ]
pull_request:
# branches: [ master ]
release:
types: [created]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: "30 0 * * *"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# Alice->OpenSIPS->Bob
opensips:
uses: ./.github/workflows/.main.yml
with:
mm-type: 'opensips'
mm-branch: ${{ matrix.mm-branch }}
rtppc-type: ${{ matrix.rtppc-type }}
artifact-files: 'opensips.cfg'
strategy:
matrix:
mm-branch: ['master', '3.5', '3.4', '3.3', '3.2']
rtppc-type: ['unix', 'udp', 'udp6', 'tcp', 'tcp6']
include:
- mm-branch: '2.4'
rtppc-type: 'unix'
- mm-branch: '2.4'
rtppc-type: 'udp'
- mm-branch: '2.4'
rtppc-type: 'udp6'
- mm-branch: '3.0'
rtppc-type: 'unix'
- mm-branch: '3.0'
rtppc-type: 'udp'
- mm-branch: '3.0'
rtppc-type: 'udp6'
- mm-branch: '3.1'
rtppc-type: 'unix'
- mm-branch: '3.1'
rtppc-type: 'udp'
- mm-branch: '3.1'
rtppc-type: 'udp6'
# Alice->OpenSIPS(RFC8760)->Bob
opensips_rfc8760:
uses: ./.github/workflows/.main.yml
with:
mm-type: 'opensips'
mm-auth: ${{ matrix.mm-auth }}
rtppc-type: ${{ matrix.rtppc-type }}
artifact-files: 'opensips.cfg'
strategy:
matrix:
rtppc-type: ['unix', 'udp', 'udp6', 'tcp', 'tcp6']
mm-auth: ['passtr', 'UAC', 'UAS/auth', 'UAS/auth_db/calculate_ha1', 'UAS/auth_db/ha1']
# Alice->Sippy Python B2B->Bob
sippy_py_b2bua:
uses: ./.github/workflows/.main.yml
with:
mm-type: 'b2bua'
mm-branch: ${{ matrix.mm-branch }}
rtppc-type: ${{ matrix.rtppc-type }}
python-version: ${{ matrix.python-version }}
artifact-files: 'b2bua.log'
strategy:
matrix:
mm-branch: ['master', 'PRACK']
rtppc-type: ['unix', 'cunix', 'udp', 'udp6', 'tcp', 'tcp6']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13-dev']
# Alice->Sippy GO B2B->Bob
sippy_go_b2bua:
uses: ./.github/workflows/.main.yml
with:
mm-type: 'go-b2bua'
rtppc-type: ${{ matrix.rtppc-type }}
artifact-files: 'b2bua.log'
strategy:
matrix:
rtppc-type: ['unix', 'cunix', 'udp', 'udp6', 'tcp', 'tcp6']
# Alice->Kamailio->Bob
kamailio:
uses: ./.github/workflows/.main.yml
with:
mm-type: 'kamailio'
mm-branch: ${{ matrix.mm-branch }}
rtppc-type: ${{ matrix.rtppc-type }}
artifact-files: 'kamailio.cfg'
strategy:
matrix:
mm-branch: ['master', '5.8', '5.7', '5.6', '5.5', '5.4', '5.3', '5.2', '5.1', '5.0', '4.4']
rtppc-type: ['unix', 'udp', 'udp6']
publish:
needs: [opensips, opensips_rfc8760, sippy_py_b2bua, sippy_go_b2bua, kamailio]
if: github.event_name == 'release' && github.event.action == 'created'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*