Release libpjsua2 🚀 #20
Workflow file for this run
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: 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: build pjsip with opus and h264 | |
run: | | |
brew install nasm autoconf automake libtool swig | |
sed -i'' -e 's/xamarin/maui/g' ${{ github.workspace }}/pjproject/pjsip-apps/src/swig/csharp/Makefile | |
./build h264 opus -a=x86_64,arm64 | |
tar -zcvf ./libpjsua2 libpjsua2.tar.gz | |
- 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: 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 |