build: Make release binary names more consistent
Now that we have multiple architectures, we should factor both OS and architecture into the names of release binaries. This makes the names more formulaic, as well as consistent with the static-ffmpeg-binaries repository. Shaka Streamer will pull binaries from both this repo and that one, so consistent names would be helpful. The pssh-box release is actually OS and architecture independent, so remove the suffix from that and only release one copy of it. Change-Id: Ief3de49fae267c5267647a8dd4377023777ead37
This commit is contained in:
parent
249c83f14b
commit
bbd0a1afa6
|
@ -59,12 +59,12 @@ jobs:
|
|||
# 64-bit outputs on Windows go to a different folder name.
|
||||
build_type_suffix: "_x64"
|
||||
- os: linux-arm64
|
||||
os_name: linux-arm64
|
||||
os_name: linux
|
||||
target_arch: arm64
|
||||
exe_ext: ""
|
||||
build_type_suffix: ""
|
||||
|
||||
name: Build and test ${{ matrix.os_name }} ${{ matrix.build_type }} ${{ matrix.lib_type }}
|
||||
name: Build and test ${{ matrix.os_name }} ${{ matrix.target_arch }} ${{ matrix.build_type }} ${{ matrix.lib_type }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
|
|
|
@ -137,22 +137,19 @@ runs:
|
|||
strip packager${{ inputs.exe_ext }}
|
||||
strip mpd_generator${{ inputs.exe_ext }}
|
||||
echo "::endgroup::"
|
||||
SUFFIX="-${{ inputs.os_name }}-${{ inputs.target_arch }}"
|
||||
EXE_SUFFIX="$SUFFIX${{ inputs.exe_ext}}"
|
||||
echo "::group::Copy packager"
|
||||
cp packager${{ inputs.exe_ext }} \
|
||||
$ARTIFACTS/packager-${{ inputs.os_name }}${{ inputs.exe_ext }}
|
||||
cp packager${{ inputs.exe_ext }} $ARTIFACTS/packager$EXE_SUFFIX
|
||||
echo "::endgroup::"
|
||||
echo "::group::Copy mpd_generator"
|
||||
cp mpd_generator${{ inputs.exe_ext }} \
|
||||
$ARTIFACTS/mpd_generator-${{ inputs.os_name }}${{ inputs.exe_ext }}
|
||||
cp mpd_generator${{ inputs.exe_ext }} $ARTIFACTS/mpd_generator$EXE_SUFFIX
|
||||
echo "::endgroup::"
|
||||
if [[ '${{ runner.os }}' == 'Windows' ]]; then
|
||||
echo "::group::Zip pssh-box"
|
||||
7z a $ARTIFACTS/pssh-box-${{ inputs.os_name }}.py.zip \
|
||||
pyproto pssh-box.py
|
||||
echo "::endgroup::"
|
||||
else
|
||||
# The pssh-box bundle is OS and architecture independent. So only do
|
||||
# it on this one OS and architecture, and give it a more generic
|
||||
# filename.
|
||||
if [[ '${{ inputs.os_name }}' == 'linux' && '${{ inputs.target_arch }}' == 'x64' ]]; then
|
||||
echo "::group::Tar pssh-box"
|
||||
tar -czf $ARTIFACTS/pssh-box-${{ inputs.os_name }}.py.tar.gz \
|
||||
pyproto pssh-box.py
|
||||
tar -czf $ARTIFACTS/pssh-box.py.tar.gz pyproto pssh-box.py
|
||||
echo "::endgroup::"
|
||||
fi
|
||||
|
|
|
@ -133,12 +133,12 @@ jobs:
|
|||
# 64-bit outputs on Windows go to a different folder name.
|
||||
build_type_suffix: "_x64"
|
||||
- os: linux-arm64
|
||||
os_name: linux-arm64
|
||||
os_name: linux
|
||||
target_arch: arm64
|
||||
exe_ext: ""
|
||||
build_type_suffix: ""
|
||||
|
||||
name: Build and test ${{ matrix.os_name }} ${{ matrix.build_type }} ${{ matrix.lib_type }}
|
||||
name: Build and test ${{ matrix.os_name }} ${{ matrix.target_arch }} ${{ matrix.build_type }} ${{ matrix.lib_type }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
|
|
Loading…
Reference in New Issue