Merge pull request #2295 from nspcc-dev/github/upload-build-artifacts
.github: upload binaries for Build workflows
This commit is contained in:
commit
d42d4fc812
2 changed files with 28 additions and 40 deletions
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
|
@ -9,6 +9,11 @@ on:
|
||||||
- 'scripts/**'
|
- 'scripts/**'
|
||||||
- '**/*.md'
|
- '**/*.md'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
ref:
|
||||||
|
description: 'Ref to build CLI for Ubuntu and Windows Server Core [default: latest master; examples: v0.92.0, 0a4ff9d3e4a9ab432fd5812eb18c98e03b5a7432]'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
|
@ -21,6 +26,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
ref: ${{ github.event.inputs.ref }}
|
||||||
|
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
|
@ -40,6 +47,13 @@ jobs:
|
||||||
- name: Build CLI
|
- name: Build CLI
|
||||||
run: make build
|
run: make build
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: neo-go-binaries-ubuntu
|
||||||
|
path: ./bin/neo-go
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
build_cli_wsc:
|
build_cli_wsc:
|
||||||
name: Build CLI (Windows Server Core)
|
name: Build CLI (Windows Server Core)
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
|
@ -47,6 +61,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
ref: ${{ github.event.inputs.ref }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
|
@ -66,6 +81,13 @@ jobs:
|
||||||
- name: Build CLI
|
- name: Build CLI
|
||||||
run: make build
|
run: make build
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: neo-go-binaries-wsc
|
||||||
|
path: ./bin/neo-go.exe
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
build_image_ubuntu:
|
build_image_ubuntu:
|
||||||
needs: build_cli_ubuntu
|
needs: build_cli_ubuntu
|
||||||
name: Build Docker image (Ubuntu)
|
name: Build Docker image (Ubuntu)
|
||||||
|
@ -74,6 +96,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
ref: ${{ github.event.inputs.ref }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
|
@ -87,6 +110,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
ref: ${{ github.event.inputs.ref }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
|
|
44
.github/workflows/publish_to_dockerhub.yml
vendored
44
.github/workflows/publish_to_dockerhub.yml
vendored
|
@ -34,21 +34,12 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout (manual run)
|
- uses: actions/checkout@v2
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.ref }}
|
ref: ${{ github.event.inputs.ref }}
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Checkout (automatical run)
|
|
||||||
if: ${{ github.event_name != 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Sync VM submodule
|
- name: Sync VM submodule
|
||||||
run: |
|
run: |
|
||||||
git submodule sync
|
git submodule sync
|
||||||
|
@ -76,21 +67,12 @@ jobs:
|
||||||
name: Publish Ubuntu-based image to DockerHub
|
name: Publish Ubuntu-based image to DockerHub
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout (manual run)
|
- uses: actions/checkout@v2
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.ref }}
|
ref: ${{ github.event.inputs.ref }}
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Checkout (automatical run)
|
|
||||||
if: ${{ github.event_name != 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: make image
|
run: make image
|
||||||
|
|
||||||
|
@ -117,21 +99,12 @@ jobs:
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout (manual run)
|
- uses: actions/checkout@v2
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.ref }}
|
ref: ${{ github.event.inputs.ref }}
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Checkout (automatical run)
|
|
||||||
if: ${{ github.event_name != 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Sync VM submodule
|
- name: Sync VM submodule
|
||||||
run: |
|
run: |
|
||||||
git submodule sync
|
git submodule sync
|
||||||
|
@ -162,21 +135,12 @@ jobs:
|
||||||
name: Publish WindowsServerCore-based image to DockerHub
|
name: Publish WindowsServerCore-based image to DockerHub
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout (manual run)
|
- uses: actions/checkout@v2
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.ref }}
|
ref: ${{ github.event.inputs.ref }}
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Checkout (automatical run)
|
|
||||||
if: ${{ github.event_name != 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: make image-wsc
|
run: make image-wsc
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue