From a9d32fe8f648d53922f16d77e4762ee940b27a88 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Thu, 6 Oct 2022 07:16:50 +0300 Subject: [PATCH 1/2] .github: give proper names to CLI binaries and artifact archives --- .github/workflows/build.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba0becb67..81804ffd8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 From cd7cd02c331dcb8330cb495ab0fe588dc64bf5ba Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Thu, 6 Oct 2022 08:51:37 +0300 Subject: [PATCH 2/2] .github: exclude macOS amd64 binary from build CLI job --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 81804ffd8..880ef83f4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,6 +42,8 @@ jobs: exclude: - os: { name: windows-2022, bin-name: windows } arch: 'arm64' + - os: { name: macos-12, bin-name: darwin } + arch: 'amd64' steps: - uses: actions/checkout@v3