From b3ffe4228fe0ec5745374434663d20626bf78afc Mon Sep 17 00:00:00 2001 From: Jinghui Liao Date: Fri, 13 Oct 2023 03:01:58 +0800 Subject: [PATCH] try to fix errors --- .github/workflows/test_plugins.yml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test_plugins.yml b/.github/workflows/test_plugins.yml index d70d3e1987..95e8cc0cdb 100644 --- a/.github/workflows/test_plugins.yml +++ b/.github/workflows/test_plugins.yml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: build-and-test: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout neo @@ -20,30 +20,38 @@ jobs: - name: Patch neo-modules Directory.Build.props to use local neo run: | - # Path to Directory.Build.props in neo-modules props_path="./neo-modules/src/Directory.Build.props" - # Remove the PackageReference to Neo sed -i '//i \ ' $props_path - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: '7.x' # Adjust according to the actual .NET Core version of neo-modules + dotnet-version: '7.x' + + - name: Clean neo-modules + run: | + cd neo-modules/ + dotnet clean + + - name: Remove problematic file if it exists + run: | + FILE_PATH="./neo/src/Neo.Json/bin/Debug/net7.0/Neo.Json.deps.json" + if [ -f "$FILE_PATH" ]; then + rm $FILE_PATH + fi + + - name: Introduce a short delay + run: sleep 10 - name: Restore and build neo-modules run: | cd neo-modules/ dotnet restore - dotnet build + dotnet build -v detailed - # Add test steps - name: Test neo-modules run: | sudo apt-get --assume-yes install libleveldb-dev libsnappy-dev libc6-dev cd neo-modules/tests dotnet test -