forked from TrueCloudLab/neoneo-go
.github: give proper names to CLI binaries and artifact archives
This commit is contained in:
parent
1c376ffa62
commit
a9d32fe8f6
1 changed files with 7 additions and 4 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
@ -34,13 +34,13 @@ on:
|
|||
jobs:
|
||||
build_cli:
|
||||
name: Build CLI
|
||||
runs-on: ${{matrix.os}}
|
||||
runs-on: ${{matrix.os.name}}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-20.04, windows-2022, macos-12]
|
||||
os: [{ name: ubuntu-20.04, bin-name: linux }, { name: windows-2022, bin-name: windows }, { name: macos-12, bin-name: darwin }]
|
||||
arch: [amd64, arm64]
|
||||
exclude:
|
||||
- os: windows-2022
|
||||
- os: { name: windows-2022, bin-name: windows }
|
||||
arch: 'arm64'
|
||||
|
||||
steps:
|
||||
|
@ -64,10 +64,13 @@ jobs:
|
|||
env:
|
||||
GOARCH: ${{ matrix.arch }}
|
||||
|
||||
- name: Rename CLI binary
|
||||
run: mv ./bin/neo-go* ./bin/neo-go-${{ matrix.os.bin-name }}-${{ matrix.arch }}${{ (matrix.os.bin-name == 'windows' && '.exe') || '' }}
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: neo-go-${{ matrix.os }}-${{ matrix.arch }}
|
||||
name: neo-go-${{ matrix.os.bin-name }}-${{ matrix.arch }}
|
||||
path: ./bin/neo-go*
|
||||
if-no-files-found: error
|
||||
|
||||
|
|
Loading…
Reference in a new issue