Merge BlockCore @version 1.1.40 #47
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: List LevelDB Files | |
if: matrix.os == 'macos-latest' | |
run: find / -name "*leveldb*" 2>/dev/null | |
- 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}} |