Attach architecture to binary filenames

This commit is contained in:
Henrik Friedrichsen
2021-11-29 22:34:00 +01:00
parent 70d6592702
commit ec46143d62

View File

@@ -15,17 +15,17 @@ jobs:
include: include:
- build_target: linux - build_target: linux
os: ubuntu-latest os: ubuntu-latest
artifact_prefix: linux artifact_suffix: linux-x86_64
target: x86_64-unknown-linux-gnu target: x86_64-unknown-linux-gnu
features: '' features: ''
- build_target: macos - build_target: macos
os: macos-latest os: macos-latest
artifact_prefix: macos artifact_suffix: macos-x86_64
target: x86_64-apple-darwin target: x86_64-apple-darwin
features: '--no-default-features --features portaudio_backend,cursive/pancurses-backend' features: '--no-default-features --features portaudio_backend,cursive/pancurses-backend'
- build_target: windows - build_target: windows
os: windows-latest os: windows-latest
artifact_prefix: windows artifact_suffix: windows-x86_64
target: x86_64-pc-windows-msvc target: x86_64-pc-windows-msvc
features: '--no-default-features --features rodio_backend,cursive/pancurses-backend' features: '--no-default-features --features rodio_backend,cursive/pancurses-backend'
steps: steps:
@@ -67,13 +67,13 @@ jobs:
cd target/${{ matrix.target }}/release cd target/${{ matrix.target }}/release
case ${{ matrix.target }} in case ${{ matrix.target }} in
*-pc-windows-*) *-pc-windows-*)
7z -y a ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.artifact_prefix }}.zip ncspot.exe 7z -y a ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.artifact_suffix }}.zip ncspot.exe
sha256sum ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.artifact_prefix }}.zip > ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.artifact_prefix }}.sha256 sha256sum ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.artifact_suffix }}.zip > ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.artifact_suffix }}.sha256
;; ;;
*) *)
strip ncspot strip ncspot
tar czvf ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.artifact_prefix }}.tar.gz ncspot tar czvf ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.artifact_suffix }}.tar.gz ncspot
shasum -a 256 ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.artifact_prefix }}.tar.gz > ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.artifact_prefix }}.sha256 shasum -a 256 ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.artifact_suffix }}.tar.gz > ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.artifact_suffix }}.sha256
;; ;;
esac; esac;
- name: Releasing assets - name: Releasing assets