Skip to content

Commit

Permalink
Revise and update workflows (#6388)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubo authored Dec 19, 2023
1 parent f15eedc commit 7ef0b6b
Show file tree
Hide file tree
Showing 18 changed files with 127 additions and 456 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/alert-on-issue-open-event.yml

This file was deleted.

75 changes: 0 additions & 75 deletions .github/workflows/build-bls-libs.yml

This file was deleted.

74 changes: 0 additions & 74 deletions .github/workflows/build-gmp-libs.yml

This file was deleted.

65 changes: 0 additions & 65 deletions .github/workflows/build-mcl-libs.yml

This file was deleted.

14 changes: 7 additions & 7 deletions .github/workflows/build-nethermind-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
repository: NethermindEth/nethermind.launcher
path: launcher
- name: Set up .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
global-json-file: nethermind/global.json
- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 14
- name: Install npm packages
Expand Down Expand Up @@ -61,31 +61,31 @@ jobs:
echo "PACKAGE_PREFIX=$PACKAGE_PREFIX" >> $GITHUB_ENV
nethermind/scripts/deployment/archive-packages.sh
- name: Upload Nethermind Linux x64 package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.PACKAGE_PREFIX }}-linux-x64-package
path: ${{ github.workspace }}/${{ env.PACKAGE_DIR }}/*linux-x64*
retention-days: ${{ env.PACKAGE_RETENTION }}
- name: Upload Nethermind Linux arm64 package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.PACKAGE_PREFIX }}-linux-arm64-package
path: ${{ github.workspace }}/${{ env.PACKAGE_DIR }}/*linux-arm64*
retention-days: ${{ env.PACKAGE_RETENTION }}
- name: Upload Nethermind Windows x64 package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.PACKAGE_PREFIX }}-windows-x64-package
path: ${{ github.workspace }}/${{ env.PACKAGE_DIR }}/*windows-x64*
retention-days: ${{ env.PACKAGE_RETENTION }}
- name: Upload Nethermind macOS x64 package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.PACKAGE_PREFIX }}-macos-x64-package
path: ${{ github.workspace }}/${{ env.PACKAGE_DIR }}/*macos-x64*
retention-days: ${{ env.PACKAGE_RETENTION }}
- name: Upload Nethermind macOS arm64 package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.PACKAGE_PREFIX }}-macos-arm64-package
path: ${{ github.workspace }}/${{ env.PACKAGE_DIR }}/*macos-arm64*
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-solutions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install Linux packages
run: sudo apt-get update && sudo apt-get install libsnappy-dev
- name: Set up .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
- name: Install dependencies
run: |
dotnet restore Nethermind.sln
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
- name: Format
run: dotnet format whitespace src/Nethermind/ --folder --verify-no-changes
36 changes: 18 additions & 18 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
tags: ['*']
schedule:
- cron: '0 0 * * 0'
- cron: '0 0 * * 0'
workflow_dispatch:

jobs:
Expand All @@ -20,20 +20,20 @@ jobs:
matrix:
language: ['csharp']
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Update submodules
run: git submodule update --init src/tests
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Set up .NET
uses: actions/setup-dotnet@v3
- name: Build Nethermind
working-directory: src/Nethermind
run: dotnet build Nethermind.sln -c release
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v2
with:
category: '/language:${{ matrix.language }}'
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: true
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Set up .NET
uses: actions/setup-dotnet@v4
- name: Build Nethermind
working-directory: src/Nethermind
run: dotnet build Nethermind.sln -c release
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v2
with:
category: '/language:${{ matrix.language }}'
Loading

0 comments on commit 7ef0b6b

Please sign in to comment.