Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revise product version #4322

Merged
merged 24 commits into from
Aug 18, 2022
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/build-solution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@ on:
defaults:
run:
working-directory: src/Nethermind


env:
BUILD_CONFIG: release

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x

Expand All @@ -31,6 +35,6 @@ jobs:
- name: Build
run: |
dotnet build --configuration Release --no-restore Baseline.sln
dotnet build --configuration Release --no-restore Cortex.sln
dotnet build --configuration Release --no-restore Benchmarks.sln
dotnet build Baseline.sln -c ${{ env.BUILD_CONFIG }} --no-restore
dotnet build Cortex.sln -c ${{ env.BUILD_CONFIG }} --no-restore
dotnet build Benchmarks.sln -c ${{ env.BUILD_CONFIG }} --no-restore
106 changes: 54 additions & 52 deletions .github/workflows/release-nethermind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ on:
workflow_dispatch:
inputs:
tag:
description: 'The TAG of the version you want to release.'
required: false
default: 'master'
description: 'The TAG of the version you want to release'
required: true

permissions:
deployments: write
Expand All @@ -31,37 +30,40 @@ jobs:
OSX_ARM64: osx-arm64
steps:
- name: Checking out Nethermind repository
uses: actions/checkout@master
uses: actions/checkout@v3
with:
submodules: recursive
path: nethermind
ref: ${{ github.event.inputs.tag }}
fetch-depth: 0
#fetch-depth: 0
- name: Checking out Nethermind Launcher repository
uses: actions/checkout@master
uses: actions/checkout@v3
with:
repository: NethermindEth/nethermind.launcher
path: launcher
- name: Setting up Node.js
uses: actions/setup-node@master
uses: actions/setup-node@v3
with:
node-version: "14"
- name: Setting up Build Environment
run: |
npm i pkg @vercel/ncc -g
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
- name: Setting up .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
dotnet-version: 6.0.x
- name: Setting up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: Setting up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Setting up Packages
run: ./nethermind/scripts/deployment/setup-packages.sh
uses: docker/setup-buildx-action@v2
#- name: Setting up Packages
# run: ./nethermind/scripts/deployment/setup-packages.sh
- name: Building Runner
run: ./nethermind/scripts/deployment/build-runner.sh
run: |
cd nethermind/
commit_hash=$(git describe --always --exclude=* --abbrev=40)
./scripts/deployment/build-runner.sh ${{ github.event.inputs.tag }} $commit_hash
- name: Building Cli
run: ./nethermind/scripts/deployment/build-cli.sh
- name: Building Launcher
Expand All @@ -74,37 +76,37 @@ jobs:
mv Nethermind.Launcher ${{ env.RELEASE_DIRECTORY }}/${{ env.LIN_ARM64_RELEASE }}/Nethermind.Launcher
- name: Archiving packages
run: ./nethermind/scripts/deployment/archive-packages.sh
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v3
name: Uploading Nethermind darwin package
with:
name: nethermind-darwin-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.OSX_RELEASE }}/nethermind-darwin-amd64-*
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v3
name: Uploading Nethermind linux package
with:
name: nethermind-linux-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.LIN_RELEASE }}/nethermind-linux-amd64-*
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v3
name: Uploading Nethermind windows package
with:
name: nethermind-windows-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.WIN_RELEASE }}/nethermind-windows-amd64-*
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v3
name: Uploading Nethermind linux arm64 package
with:
name: nethermind-linux-arm64-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.LIN_ARM64_RELEASE }}/nethermind-linux-arm64-*
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v3
name: Uploading Nethermind darwin arm64 package
with:
name: nethermind-darwin-arm64-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.OSX_ARM64_RELEASE }}/nethermind-darwin-arm64-*
- uses: actions/upload-artifact@master
name: Uploading git-hash files
with:
name: nethermind-git-hash
path: ${{ env.RELEASE_DIRECTORY }}/git-*
- uses: actions/upload-artifact@master
#- uses: actions/upload-artifact@v3
# name: Uploading git-hash files
# with:
# name: nethermind-git-hash
# path: ${{ env.RELEASE_DIRECTORY }}/git-*
- uses: actions/upload-artifact@v3
name: Uploading update-homebrew.sh
with:
name: update-homebrew-sh
Expand All @@ -120,27 +122,27 @@ jobs:
RELEASE_DIRECTORY: /home/runner/work/nethermind/nethermind
steps:
- name: Downloading Nethermind darwin package
uses: actions/download-artifact@master
uses: actions/download-artifact@v3
with:
name: nethermind-darwin-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.OSX_RELEASE }}/
- name: Downloading Nethermind darwin arm64 package
uses: actions/download-artifact@master
uses: actions/download-artifact@v3
with:
name: nethermind-darwin-arm64-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.OSX_ARM64_RELEASE }}/
- name: Downloading git-hash files
uses: actions/download-artifact@master
with:
name: nethermind-git-hash
path: ${{ env.RELEASE_DIRECTORY }}/
#- name: Downloading git-hash files
# uses: actions/download-artifact@v3
# with:
# name: nethermind-git-hash
# path: ${{ env.RELEASE_DIRECTORY }}/
- name: Downloading update-homebrew script
uses: actions/download-artifact@master
uses: actions/download-artifact@v3
with:
name: update-homebrew-sh
path: ${{ env.RELEASE_DIRECTORY }}/
- name: Checkout repository
uses: actions/checkout@master
uses: actions/checkout@v3
with:
repository: NethermindEth/homebrew-nethermind
path: homebrew-nethermind
Expand Down Expand Up @@ -183,32 +185,32 @@ jobs:
OSX_ARM64_RELEASE: nethermind-osx-arm64
steps:
- name: Checking out Nethermind repository
uses: actions/checkout@master
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.tag }}
path: nethermind
fetch-depth: 0
- uses: actions/download-artifact@master
- uses: actions/download-artifact@v3
name: Downloading Nethermind darwin package
with:
name: nethermind-darwin-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.OSX_RELEASE }}/
- uses: actions/download-artifact@master
- uses: actions/download-artifact@v3
name: Downloading Nethermind linux package
with:
name: nethermind-linux-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.LIN_RELEASE }}/
- uses: actions/download-artifact@master
- uses: actions/download-artifact@v3
name: Downloading Nethermind windows package
with:
name: nethermind-windows-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.WIN_RELEASE }}/
- uses: actions/download-artifact@master
- uses: actions/download-artifact@v3
name: Downloading Nethermind linux arm64 package
with:
name: nethermind-linux-arm64-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.LIN_ARM64_RELEASE }}/
- uses: actions/download-artifact@master
- uses: actions/download-artifact@v3
name: Downloading Nethermind darwin arm64 package
with:
name: nethermind-darwin-arm64-package
Expand All @@ -232,31 +234,31 @@ jobs:
OSX_ARM64_RELEASE: nethermind-osx-arm64
steps:
- name: Checking out Nethermind repository
uses: actions/checkout@master
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.tag }}
path: nethermind
- uses: actions/download-artifact@master
- uses: actions/download-artifact@v3
name: Downloading Nethermind darwin package
with:
name: nethermind-darwin-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.OSX_RELEASE }}/
- uses: actions/download-artifact@master
- uses: actions/download-artifact@v3
name: Downloading Nethermind linux package
with:
name: nethermind-linux-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.LIN_RELEASE }}/
- uses: actions/download-artifact@master
- uses: actions/download-artifact@v3
name: Downloading Nethermind windows package
with:
name: nethermind-windows-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.WIN_RELEASE }}/
- uses: actions/download-artifact@master
- uses: actions/download-artifact@v3
name: Downloading Nethermind linux arm64 package
with:
name: nethermind-linux-arm64-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.LIN_ARM64_RELEASE }}/
- uses: actions/download-artifact@master
- uses: actions/download-artifact@v3
name: Downloading Nethermind darwin arm64 package
with:
name: nethermind-darwin-arm64-package
Expand All @@ -279,7 +281,7 @@ jobs:
needs: trigger-publish
steps:
- name: Checking out Nethermind repository
uses: actions/checkout@master
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.tag }}
fetch-depth: 0
Expand All @@ -290,10 +292,10 @@ jobs:
echo ::set-output name=docker_username::${{ secrets.DOCKER_USERNAME }}
echo ::set-output name=docker_image::nethermind/nethermind
- name: Setting up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: Setting up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Logging to Docker Hub
if: success()
env:
Expand Down Expand Up @@ -338,10 +340,10 @@ jobs:
- name: Install dependencies for PPA
run: sudo apt update > /dev/null 2>&1 && sudo apt install debhelper devscripts -y > /dev/null 2>&1
- name: Checking out Nethermind repository
uses: actions/checkout@master
uses: actions/checkout@v3
with:
path: nethermind
- name: Run publish PPA script
run: |
chmod +x ./nethermind/scripts/deployment/publish-ppa.sh
./nethermind/scripts/deployment/publish-ppa.sh
./nethermind/scripts/deployment/publish-ppa.sh
Loading