diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml index 26f4bfcc08..cce0e26829 100644 --- a/.github/workflows/build_and_test.yaml +++ b/.github/workflows/build_and_test.yaml @@ -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: diff --git a/.github/workflows/custom-actions/build-packager/action.yaml b/.github/workflows/custom-actions/build-packager/action.yaml index 11d961f5ca..c875bb7844 100644 --- a/.github/workflows/custom-actions/build-packager/action.yaml +++ b/.github/workflows/custom-actions/build-packager/action.yaml @@ -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 diff --git a/.github/workflows/github_release.yaml b/.github/workflows/github_release.yaml index 235e0f7c5b..6bb9e41ad1 100644 --- a/.github/workflows/github_release.yaml +++ b/.github/workflows/github_release.yaml @@ -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: