|
|
|
@ -21,6 +21,7 @@ jobs:
|
|
|
|
|
# SRS_VERSION=5.0.145
|
|
|
|
|
# SRS_VERSION=5.0-r8
|
|
|
|
|
# SRS_MAJOR=5
|
|
|
|
|
# SRS_XYZ=5.0.157
|
|
|
|
|
# @see https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
|
|
|
|
|
- name: Generate varaiables
|
|
|
|
|
run: |
|
|
|
|
@ -30,11 +31,18 @@ jobs:
|
|
|
|
|
echo "SRS_VERSION=$SRS_VERSION" >> $GITHUB_ENV
|
|
|
|
|
SRS_MAJOR=$(echo $SRS_TAG| cut -c 2)
|
|
|
|
|
echo "SRS_MAJOR=$SRS_MAJOR" >> $GITHUB_ENV
|
|
|
|
|
VFILE="trunk/src/core/srs_core_version5.hpp"
|
|
|
|
|
SRS_X=$(cat $VFILE |grep VERSION_MAJOR |awk '{print $3}')
|
|
|
|
|
SRS_Y=$(cat $VFILE |grep VERSION_MINOR |awk '{print $3}')
|
|
|
|
|
SRS_Z=$(cat $VFILE |grep VERSION_REVISION |awk '{print $3}')
|
|
|
|
|
SRS_XYZ=$SRS_X.$SRS_Y.$SRS_Z
|
|
|
|
|
echo "SRS_XYZ=$SRS_XYZ" >> $GITHUB_ENV
|
|
|
|
|
# Map a step output to a job output, see https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs
|
|
|
|
|
outputs:
|
|
|
|
|
SRS_TAG: ${{ env.SRS_TAG }}
|
|
|
|
|
SRS_VERSION: ${{ env.SRS_VERSION }}
|
|
|
|
|
SRS_MAJOR: ${{ env.SRS_MAJOR }}
|
|
|
|
|
SRS_XYZ: ${{ env.SRS_XYZ }}
|
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
@ -238,6 +246,7 @@ jobs:
|
|
|
|
|
echo "SRS_TAG=${{ needs.envs.outputs.SRS_TAG }}" >> $GITHUB_ENV
|
|
|
|
|
echo "SRS_VERSION=${{ needs.envs.outputs.SRS_VERSION }}" >> $GITHUB_ENV
|
|
|
|
|
echo "SRS_MAJOR=${{ needs.envs.outputs.SRS_MAJOR }}" >> $GITHUB_ENV
|
|
|
|
|
echo "SRS_XYZ=${{ needs.envs.outputs.SRS_XYZ }}" >> $GITHUB_ENV
|
|
|
|
|
##################################################################################################################
|
|
|
|
|
# Git checkout
|
|
|
|
|
- name: Checkout repository
|
|
|
|
@ -274,6 +283,8 @@ jobs:
|
|
|
|
|
ossrs/srs:${{ env.SRS_VERSION }}
|
|
|
|
|
ossrs/srs:${{ env.SRS_MAJOR }}
|
|
|
|
|
ossrs/srs:v${{ env.SRS_MAJOR }}
|
|
|
|
|
ossrs/srs:${{ env.SRS_XYZ }}
|
|
|
|
|
ossrs/srs:v${{ env.SRS_XYZ }}
|
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
|
|
aliyun-srs:
|
|
|
|
@ -289,6 +300,7 @@ jobs:
|
|
|
|
|
echo "SRS_TAG=${{ needs.envs.outputs.SRS_TAG }}" >> $GITHUB_ENV
|
|
|
|
|
echo "SRS_VERSION=${{ needs.envs.outputs.SRS_VERSION }}" >> $GITHUB_ENV
|
|
|
|
|
echo "SRS_MAJOR=${{ needs.envs.outputs.SRS_MAJOR }}" >> $GITHUB_ENV
|
|
|
|
|
echo "SRS_XYZ=${{ needs.envs.outputs.SRS_XYZ }}" >> $GITHUB_ENV
|
|
|
|
|
# Aliyun ACR
|
|
|
|
|
# TODO: FIXME: If stable, please set the latest from 4.0 to 5.0
|
|
|
|
|
- name: Login aliyun hub
|
|
|
|
@ -306,6 +318,8 @@ jobs:
|
|
|
|
|
registry.cn-hangzhou.aliyuncs.com/ossrs/srs:${{ env.SRS_VERSION }}
|
|
|
|
|
registry.cn-hangzhou.aliyuncs.com/ossrs/srs:${{ env.SRS_MAJOR }}
|
|
|
|
|
registry.cn-hangzhou.aliyuncs.com/ossrs/srs:v${{ env.SRS_MAJOR }}
|
|
|
|
|
registry.cn-hangzhou.aliyuncs.com/ossrs/srs:${{ env.SRS_XYZ }}
|
|
|
|
|
registry.cn-hangzhou.aliyuncs.com/ossrs/srs:v${{ env.SRS_XYZ }}
|
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
|
|
update:
|
|
|
|
|