From 777e9280eae515cf6b562a8c6abd553af8d1a4c1 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Sun, 31 May 2026 22:30:47 +0300 Subject: [PATCH 1/3] Update supported Ubuntu 26.04 versions --- install_ant-media-server.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install_ant-media-server.sh b/install_ant-media-server.sh index 949ebe8c..0e7bb8a0 100755 --- a/install_ant-media-server.sh +++ b/install_ant-media-server.sh @@ -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 @@ -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 @@ -598,4 +598,4 @@ echo " support@antmedia.io" echo "" echo "============================================================" echo "🎉 Happy Streaming with Ant Media Server!" -echo "============================================================" \ No newline at end of file +echo "============================================================" From 0fece75b43968e34e99050f002d8c9f67300a30b Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Sun, 31 May 2026 22:33:18 +0300 Subject: [PATCH 2/3] Update workflow to use Ubuntu 26.04 --- .../install-latest-to-ubuntu-26-04.yml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/install-latest-to-ubuntu-26-04.yml diff --git a/.github/workflows/install-latest-to-ubuntu-26-04.yml b/.github/workflows/install-latest-to-ubuntu-26-04.yml new file mode 100644 index 00000000..8642bea8 --- /dev/null +++ b/.github/workflows/install-latest-to-ubuntu-26-04.yml @@ -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 From 7f5a5dcf56f866fe844caba80d693fae3b0aa44f Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Sun, 31 May 2026 22:34:42 +0300 Subject: [PATCH 3/3] Update workflow for Ubuntu version change to 26.04 --- ...nstall-latest-snapshot-to-ubuntu-26-04.yml | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 .github/workflows/install-latest-snapshot-to-ubuntu-26-04.yml diff --git a/.github/workflows/install-latest-snapshot-to-ubuntu-26-04.yml b/.github/workflows/install-latest-snapshot-to-ubuntu-26-04.yml new file mode 100644 index 00000000..b8addbcb --- /dev/null +++ b/.github/workflows/install-latest-snapshot-to-ubuntu-26-04.yml @@ -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>/ { + if ($0 ~ /.*-SNAPSHOT<\/version>/) { + gsub(/.*/, "") + 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 '(?<=)[^<]+' maven-metadata.xml) + BUILD_NUMBER=$(grep -oPm1 '(?<=)[^<]+' 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