9999 SRS_RELEASE_ID : ${{ steps.create_draft.outputs.id }}
100100 runs-on : ubuntu-22.04
101101
102- cygwin64 :
103- name : cygwin64
104- needs :
105- - envs
106- - draft
107- steps :
108- # See https://github.com/cygwin/cygwin-install-action#parameters
109- # Note that https://github.com/egor-tensin/setup-cygwin fails to install packages.
110- - name : Setup Cygwin
111- uses : cygwin/cygwin-install-action@006ad0b0946ca6d0a3ea2d4437677fa767392401 # master
112- with :
113- platform : x86_64
114- packages : bash make gcc-g++ cmake automake patch pkg-config tcl unzip
115- install-dir : C:\cygwin64
116- # #################################################################################################################
117- - name : Checkout repository
118- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
119- # #################################################################################################################
120- - name : Covert output to env
121- env :
122- SHELLOPTS : igncr
123- shell : C:\cygwin64\bin\bash.exe --login '{0}'
124- run : |
125- echo "SRS_TAG=${{ needs.envs.outputs.SRS_TAG }}" >> $GITHUB_ENV
126- echo "SRS_VERSION=${{ needs.envs.outputs.SRS_VERSION }}" >> $GITHUB_ENV
127- echo "SRS_MAJOR=${{ needs.envs.outputs.SRS_MAJOR }}" >> $GITHUB_ENV
128- echo "SRS_RELEASE_ID=${{ needs.draft.outputs.SRS_RELEASE_ID }}" >> $GITHUB_ENV
129- # #################################################################################################################
130- - name : Build SRS
131- env :
132- SHELLOPTS : igncr
133- SRS_WORKSPACE : ${{ github.workspace }}
134- shell : C:\cygwin64\bin\bash.exe --login '{0}'
135- run : |
136- export PATH=/usr/bin:/usr/local/bin &&
137- which make gcc g++ patch cmake pkg-config uname grep sed &&
138- (make --version; gcc --version; patch --version; cmake --version; pkg-config --version) &&
139- (aclocal --version; autoconf --version; automake --version; uname -a) &&
140- cd $(cygpath -u $SRS_WORKSPACE)/trunk && ./configure --gb28181=on --h265=on && make
141- # #################################################################################################################
142- - name : Package SRS
143- env :
144- SHELLOPTS : igncr
145- SRS_WORKSPACE : ${{ github.workspace }}
146- shell : C:\cygwin64\bin\bash.exe --login '{0}'
147- run : |
148- cd $(cygpath -u $SRS_WORKSPACE) &&
149- if [[ $(echo $SRS_TAG |grep -qE '^v' && echo YES) != YES ]]; then
150- SRS_VERSION=$(./trunk/objs/srs -v 2>&1); echo "Change version to ${SRS_VERSION}";
151- fi &&
152- "/cygdrive/c/Program Files (x86)/NSIS/makensis.exe" /DSRS_VERSION=${SRS_VERSION} \
153- /DCYGWIN_DIR="C:\cygwin64" trunk/packaging/nsis/srs.nsi &&
154- mv trunk/packaging/nsis/SRS-Windows-x86_64-${SRS_VERSION}-setup.exe . && ls -lh *.exe &&
155- echo "SRS_CYGWIN_TAR=SRS-Windows-x86_64-${SRS_VERSION}-setup.exe" >> $GITHUB_ENV &&
156- echo "SRS_CYGWIN_MD5=$(md5sum SRS-Windows-x86_64-${SRS_VERSION}-setup.exe| awk '{print $1}')" >> $GITHUB_ENV
157- # #################################################################################################################
158- - name : Upload Release Assets Cygwin
159- id : upload-release-assets-cygwin
160- uses : dwenegar/upload-release-assets@5bc3024cf83521df8ebfadf00ad0c4614fd59148 # v1
161- env :
162- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
163- with :
164- release_id : ${{ env.SRS_RELEASE_ID }}
165- assets_path : ${{ env.SRS_CYGWIN_TAR }}
166- # Map a step output to a job output, see https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs
167- outputs :
168- SRS_CYGWIN_TAR : ${{ env.SRS_CYGWIN_TAR }}
169- SRS_CYGWIN_MD5 : ${{ env.SRS_CYGWIN_MD5 }}
170- runs-on : windows-latest
171-
172102 linux :
173103 name : linux
174104 needs :
@@ -399,7 +329,6 @@ jobs:
399329 - update
400330 - envs
401331 - draft
402- - cygwin64
403332 - linux
404333 steps :
405334 # #################################################################################################################
@@ -414,8 +343,6 @@ jobs:
414343 echo "SRS_PACKAGE_MD5=${{ needs.linux.outputs.SRS_PACKAGE_MD5 }}" >> $GITHUB_ENV
415344 echo "SRS_SOURCE_TAR=${{ needs.linux.outputs.SRS_SOURCE_TAR }}" >> $GITHUB_ENV
416345 echo "SRS_SOURCE_MD5=${{ needs.linux.outputs.SRS_SOURCE_MD5 }}" >> $GITHUB_ENV
417- echo "SRS_CYGWIN_TAR=${{ needs.cygwin64.outputs.SRS_CYGWIN_TAR }}" >> $GITHUB_ENV
418- echo "SRS_CYGWIN_MD5=${{ needs.cygwin64.outputs.SRS_CYGWIN_MD5 }}" >> $GITHUB_ENV
419346 # #################################################################################################################
420347 # Git checkout
421348 - name : Checkout repository
@@ -441,12 +368,10 @@ jobs:
441368 ## Resource
442369 * Source: ${{ env.SRS_SOURCE_MD5 }} [${{ env.SRS_SOURCE_TAR }}](https://github.com/ossrs/srs/releases/download/${{ env.SRS_TAG }}/${{ env.SRS_SOURCE_TAR }})
443370 * Binary: ${{ env.SRS_PACKAGE_MD5 }} [${{ env.SRS_PACKAGE_ZIP }}](https://github.com/ossrs/srs/releases/download/${{ env.SRS_TAG }}/${{ env.SRS_PACKAGE_ZIP }})
444- * Binary: ${{ env.SRS_CYGWIN_MD5 }} [${{ env.SRS_CYGWIN_TAR }}](https://github.com/ossrs/srs/releases/download/${{ env.SRS_TAG }}/${{ env.SRS_CYGWIN_TAR }})
445-
371+
446372 ## Resource Mirror: gitee.com
447373 * Source: ${{ env.SRS_SOURCE_MD5 }} [${{ env.SRS_SOURCE_TAR }}](https://gitee.com/ossrs/srs/releases/download/${{ env.SRS_TAG }}/${{ env.SRS_SOURCE_TAR }})
448374 * Binary: ${{ env.SRS_PACKAGE_MD5 }} [${{ env.SRS_PACKAGE_ZIP }}](https://gitee.com/ossrs/srs/releases/download/${{ env.SRS_TAG }}/${{ env.SRS_PACKAGE_ZIP }})
449- * Binary: ${{ env.SRS_CYGWIN_MD5 }} [${{ env.SRS_CYGWIN_TAR }}](https://gitee.com/ossrs/srs/releases/download/${{ env.SRS_TAG }}/${{ env.SRS_CYGWIN_TAR }})
450375
451376 ## Docker
452377 * [docker pull ossrs/srs:${{ env.SRS_MAJOR }}](https://ossrs.io/lts/en-us/docs/v6/doc/getting-started)
0 commit comments