Skip to content

Merge BlockCore @version 1.1.40 #46

Merge BlockCore @version 1.1.40

Merge BlockCore @version 1.1.40 #46

Workflow file for this run

name: Pull Request
on:
pull_request:
branches:
- master
jobs:
buildAndUnitTest:
strategy:
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
fail-fast: false
runs-on: ${{ matrix.os }}
env:
SOLUTION_PATH: 'src/Blockcore.sln'
BUILD_CONFIGURATION: 'Release'
DYLD_LIBRARY_PATH: "/opt/homebrew/lib"
steps:
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
8.0.x
- name: Install LevelDB
if: matrix.os == 'macos-latest'
run: brew install leveldb snappy gperftools
- name: Restore
run: dotnet restore ${{env.SOLUTION_PATH}}
- name: Build
run: dotnet build -c ${{env.BUILD_CONFIGURATION}} -v m ${{env.SOLUTION_PATH}}
- name: Create Native Directory
if: matrix.os == 'macos-latest'
run: mkdir -p src/Tests/Blockcore.Tests/bin/Release/net8.0/runtimes/osx/native
- name: Copy LevelDB Library
if: matrix.os == 'macos-latest'
run: cp /opt/homebrew/lib/libleveldb.dylib src/Tests/Blockcore.Tests/bin/Release/net8.0/runtimes/osx/native/libleveldb.dylib
- name: Unit Test
run: dotnet test -v=normal --filter "FullyQualifiedName!~IntegrationTests&Unstable!=True" -c ${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_PATH}}
- name: Integration Test
run: dotnet test -v=normal --filter "FullyQualifiedName~IntegrationTests&Unstable!=True" -c ${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_PATH}}