Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions .github/workflows/install-latest-snapshot-to-ubuntu-26-04.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Install Latest Snapshot to Ubuntu 26.04
on: [push]

jobs:
Install-Ubuntu-26-04:
runs-on: ubuntu-26.04
steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Download Ant Media Server pom.xml
run: |
wget -O ant-media-pom.xml \
https://raw.githubusercontent.com/ant-media/Ant-Media-Server/master/pom.xml

- name: Read snapshot version from pom.xml
run: |
SNAPSHOT_VERSION=$(awk '
/<parent>/,/<\/parent>/ {
if ($0 ~ /<version>.*-SNAPSHOT<\/version>/) {
gsub(/.*<version>/, "")
gsub(/<\/version>.*/, "")
print
exit
}
}
' ant-media-pom.xml)

if [ -z "$SNAPSHOT_VERSION" ]; then
echo "Could not determine snapshot version from pom.xml"
exit 1
fi

echo "SNAPSHOT_VERSION=$SNAPSHOT_VERSION" >> $GITHUB_ENV
echo "Using snapshot version: $SNAPSHOT_VERSION"

- name: Download snapshot metadata
run: |
wget -O maven-metadata.xml \
"https://central.sonatype.com/repository/maven-snapshots/io/antmedia/ant-media-server/${SNAPSHOT_VERSION}/maven-metadata.xml"

- name: Resolve real snapshot artifact version
run: |
TIMESTAMP=$(grep -oPm1 '(?<=<timestamp>)[^<]+' maven-metadata.xml)
BUILD_NUMBER=$(grep -oPm1 '(?<=<buildNumber>)[^<]+' maven-metadata.xml)

if [ -z "$TIMESTAMP" ] || [ -z "$BUILD_NUMBER" ]; then
echo "Could not determine snapshot timestamp/build number"
exit 1
fi

BASE_VERSION=${SNAPSHOT_VERSION%-SNAPSHOT}
REAL_SNAPSHOT_VERSION="${BASE_VERSION}-${TIMESTAMP}-${BUILD_NUMBER}"

echo "REAL_SNAPSHOT_VERSION=$REAL_SNAPSHOT_VERSION" >> $GITHUB_ENV
echo "Resolved snapshot version: $REAL_SNAPSHOT_VERSION"

- name: Download Ant Media Server snapshot zip
run: |
wget -O ant-media-server-community.zip \
"https://central.sonatype.com/repository/maven-snapshots/io/antmedia/ant-media-server/${SNAPSHOT_VERSION}/ant-media-server-${REAL_SNAPSHOT_VERSION}-community.zip"

- name: Install Ant Media Server
run: ./install_ant-media-server.sh -i ant-media-server-community.zip

- name: Check service status
run: sudo service antmedia status

- name: Wait for startup
run: sleep 30

- name: Show Ant Media logs
run: cat /usr/local/antmedia/log/ant-media-server.log

- name: Verify LiveApp started
run: |
if [ "$(grep -c 'LiveApp started' /usr/local/antmedia/log/ant-media-server.log)" -eq 0 ]; then
echo "LiveApp started log does not exist. Check the logs above"
exit 1
fi

- name: Show Ant Media error log
run: cat /usr/local/antmedia/log/antmedia-error.log
53 changes: 53 additions & 0 deletions .github/workflows/install-latest-to-ubuntu-26-04.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Install Latest to Ubuntu 26.04
on: [push]

jobs:
Install-Ubuntu-26-04:
runs-on: ubuntu-26.04
steps:
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
#Get latest version
- run: curl -L -o ant-media-server-community.zip $(curl -s https://api.github.com/repos/ant-media/Ant-Media-Server/releases/latest | grep "browser_download_url" | cut -d '"' -f 4)
- run: ./install_ant-media-server.sh -i ant-media-server-community.zip
- run: sleep 30
- run: cat /usr/local/antmedia/log/ant-media-server.log
- run: |
if [ $(cat /usr/local/antmedia/log/ant-media-server.log | grep "LiveApp started" | wc -l | xargs) -eq 0 ]; then
echo "LiveApp started log does not exist. Check the logs above"
exit 1;
fi;
- run: cat /usr/local/antmedia/log/antmedia-error.log
Auto-Install-Community-:
runs-on: ubuntu-26.04
steps:
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
#Get latest version
- run: ./install_ant-media-server.sh
- run: sleep 30
- run: cat /usr/local/antmedia/log/ant-media-server.log
- run: |
if [ $(cat /usr/local/antmedia/log/ant-media-server.log | grep "LiveApp started" | wc -l | xargs) -eq 0 ]; then
echo "LiveApp started log does not exist. Check the logs above"
exit 1;
fi;
- run: cat /usr/local/antmedia/log/antmedia-error.log
Auto-Install-Enterprise-:
runs-on: ubuntu-26.04
steps:
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
#Get latest version
- run: bash -x ./install_ant-media-server.sh -l"${{ secrets.ENTERPRISE_LICENSE }}"
- run: sleep 30
- run: cat /usr/local/antmedia/log/ant-media-server.log
- run: |
if [ $(cat /usr/local/antmedia/log/ant-media-server.log | grep "LiveApp started" | wc -l | xargs) -eq 0 ]; then
echo "LiveApp started log does not exist. Check the logs above"
exit 1;
fi;
- run: cat /usr/local/antmedia/log/antmedia-error.log
6 changes: 3 additions & 3 deletions install_ant-media-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ distro () {
os_release="/etc/os-release"
if [ -f "$os_release" ]; then
. $os_release
msg="We are supporting Ubuntu 20.04, Ubuntu 22.04, Ubuntu 24.04, Centos 9, RockyLinux 9 and AlmaLinux 9"
msg="We are supporting Ubuntu 20.04, Ubuntu 22.04, Ubuntu 24.04, Ubuntu 26.04, Centos 9, RockyLinux 9 and AlmaLinux 9"
if [ "$OTHER_DISTRO" == "true" ]; then
echo -e """\n- OpenJDK 11 (openjdk-11-jdk)\n- De-archiver (unzip)\n- Commons Daemon (jsvc)\n- Apache Portable Runtime Library (libapr1)\n- SSL Development Files (libssl-dev)\n- Video Acceleration (VA) API (libva-drm2)\n- Video Acceleration (VA) API - X11 runtime (libva-x11-2)\n- Video Decode and Presentation API Library (libvdpau-dev)\n- Crystal HD Video Decoder Library (libcrystalhd-dev)\n"""
read -p 'Are you sure that the above packages are installed? Y/N ' CUSTOM_PACKAGES
Expand All @@ -184,7 +184,7 @@ distro () {
exit 1
fi

if [[ $VERSION_ID != 20.04 ]] && [[ $VERSION_ID != 22.04 ]] && [[ $VERSION_ID != 24.04 ]] && [[ $VERSION_ID != 8* ]] && [[ $VERSION_ID != 9* ]] && [[ $VERSION_ID != 12 ]] && [[ $VERSION_ID != 11 ]]; then
if [[ $VERSION_ID != 20.04 ]] && [[ $VERSION_ID != 22.04 ]] && [[ $VERSION_ID != 24.04 ]] && [[ $VERSION_ID != 26.04 ]] && [[ $VERSION_ID != 8* ]] && [[ $VERSION_ID != 9* ]] && [[ $VERSION_ID != 12 ]] && [[ $VERSION_ID != 11 ]]; then
echo $msg
exit 1
fi
Expand Down Expand Up @@ -598,4 +598,4 @@ echo " support@antmedia.io"
echo ""
echo "============================================================"
echo "🎉 Happy Streaming with Ant Media Server!"
echo "============================================================"
echo "============================================================"
Loading