-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (47 loc) · 1.38 KB
/
release.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
name: Release
run-name: Release libpjsua2 🚀
on:
push:
tags:
'*'
jobs:
release:
runs-on: macos-13
permissions:
contents: write
steps:
- name: Setup Xcode
uses: maxim-lobanov/[email protected]
with:
xcode-version: '15.1'
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ github.ref }}
tag_name: ${{ github.ref }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: build pjsip with ssl opus and h264
run: |
brew install nasm autoconf automake libtool
sudo mv /Applications/Xcode-15.1.app /Applications/Xcode.app
sed -i'' -e 's/xamarin/maui/g' ${{ github.workspace }}/pjproject/pjsip-apps/src/swig/csharp/Makefile
./build ssl opus h264 -a=x86_64,arm64
tar -zcvf ./libpjsua2 libpjsua2.tar.gz
- name: upload ios artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./libpjsua2.tar.gz
asset_name: libpjsua2.tar.gz
asset_content_type: application/gzip