-
Notifications
You must be signed in to change notification settings - Fork 6
57 lines (44 loc) · 1.2 KB
/
pj.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
name: PJ
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
env:
LD_LIBRARY_PATH: /usr/local/lib
steps:
- uses: actions/checkout@v3
- name: update
run: sudo apt update
- name: install dep
run: sudo apt install -y git gcc make g++ python3 python3-dev swig curl clang pkg-config
- name: install rust
run: |
sudo curl https://sh.rustup.rs -sSf | sh -s -- -y
export PATH=$PATH:/root/.cargo/bin
- name: build pjsip
working-directory: ./pjproject
run: |
./configure --enable-shared
make dep
make
sudo make install
- name: build python module
working-directory: ./pjproject/pjsip-apps/src/swig/python
run: |
make
make install
- name: test python module
run: python3 -c 'import pjsua2'
- name: compile c example
working-directory: ./c
run: make
- name: compile cpp example
working-directory: ./cpp
run: make
- name: compile rust example
working-directory: ./rust/pjsua
run: cargo build