Skip to content

Commit

Permalink
Revise product version (#4322)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubo committed Aug 24, 2022
1 parent 413230b commit b52ee96
Show file tree
Hide file tree
Showing 36 changed files with 1,838 additions and 2,161 deletions.
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
103 changes: 52 additions & 51 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 @@ -29,39 +28,48 @@ jobs:
WIN10: win10-x64
LINUX_ARM64: linux-arm64
OSX_ARM64: osx-arm64
outputs:
COMMIT_HASH: ${{ steps.build-runner.outputs.COMMIT_HASH }}
BUILD_TIMESTAMP: ${{ steps.build-runner.outputs.BUILD_TIMESTAMP }}
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
- 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
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
id: build-runner
run: |
cd nethermind/
build_timestamp=$(date '+%s')
commit_hash=$(git describe --always --exclude=* --abbrev=40)
echo "::set-output name=BUILD_TIMESTAMP::$build_timestamp"
echo "::set-output name=COMMIT_HASH::$commit_hash"
./scripts/deployment/build-runner.sh ${{ github.event.inputs.tag }} $commit_hash $build_timestamp
- name: Building Cli
run: ./nethermind/scripts/deployment/build-cli.sh
- name: Building Launcher
Expand All @@ -73,38 +81,33 @@ jobs:
docker run --platform=linux/arm64 -v $PWD:/opt/mount --rm tmp-launcher bash -c "cp /nethermind/Nethermind.Launcher /opt/mount/"
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
run: ./nethermind/scripts/deployment/archive-packages.sh ${{ github.event.inputs.tag }} ${{ steps.build-runner.outputs.COMMIT_HASH }} ${{ steps.build-runner.outputs.BUILD_TIMESTAMP}}
- 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 update-homebrew.sh
with:
name: update-homebrew-sh
Expand All @@ -117,30 +120,28 @@ jobs:
env:
OSX_RELEASE: nethermind-osx-x64
OSX_ARM64_RELEASE: nethermind-osx-arm64
RELEASE_DIRECTORY: /home/runner/work/nethermind/nethermind
RELEASE_DIRECTORY: /home/runner/work/nethermind/nethermind
VERSION: ${{ github.event.inputs.tag }}
TIMESTAMP: ${{needs.build-nethermind.outputs.BUILD_TIMESTAMP}}
HASH: ${{needs.build-nethermind.outputs.COMMIT_HASH}}
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 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 +184,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 +233,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 +280,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 +291,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,7 +339,7 @@ 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
Expand Down
Loading

0 comments on commit b52ee96

Please sign in to comment.