Skip to content

Commit 6abda71

Browse files
authored
Merge branch 'master-n3' into message-sign
2 parents 929a81b + 6e1bf70 commit 6abda71

File tree

6 files changed

+85
-6
lines changed

6 files changed

+85
-6
lines changed

.devcontainer/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM mcr.microsoft.com/dotnet/sdk:10.0.101-noble
2+
3+
# Install required dependencies for LevelDB and SQLite
4+
RUN apt-get update && \
5+
apt-get install -y \
6+
libleveldb-dev \
7+
sqlite3 \
8+
libsqlite3-dev \
9+
librocksdb-dev \
10+
libsnappy-dev \
11+
libunwind8-dev \
12+
&& rm -rf /var/lib/apt/lists/*
13+

.devcontainer/devcontainer.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "Neo Node",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"context": ".."
6+
},
7+
"workspaceFolder": "/workspace",
8+
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind",
9+
"features": {},
10+
"customizations": {
11+
"vscode": {
12+
"extensions": [
13+
"ms-dotnettools.csharp",
14+
"ms-dotnettools.csdevkit"
15+
]
16+
}
17+
},
18+
"remoteUser": "root",
19+
"postCreateCommand": "dotnet restore"
20+
}
21+

.github/workflows/main.yml

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
name: .NET Core Test
1+
name: .NET Core Test and Publish
22

3-
on: pull_request
3+
on:
4+
push:
5+
branches: [master-n3]
6+
pull_request:
47

58
env:
69
DOTNET_VERSION: 10.0.x
710

811
jobs:
12+
913
Test:
1014
strategy:
1115
matrix:
@@ -44,3 +48,43 @@ jobs:
4448
github-token: ${{ secrets.GITHUB_TOKEN }}
4549
format: lcov
4650
file: ${{ github.workspace }}/TestResults/coverage/coverage.info
51+
52+
Release:
53+
if: github.ref == 'refs/heads/master-n3' && startsWith(github.repository, 'neo-project/')
54+
needs: Test
55+
runs-on: ubuntu-latest
56+
steps:
57+
- name: Checkout
58+
uses: actions/checkout@v5
59+
- name: Get version
60+
id: get_version
61+
run: |
62+
sudo apt install xmlstarlet
63+
find plugins -name Directory.Build.props | xargs xmlstarlet sel -N i=http://schemas.microsoft.com/developer/msbuild/2003 -t -v "concat('version=v',//i:Version/text())" | xargs echo >> $GITHUB_OUTPUT
64+
- name: Check tag
65+
if: steps.get_version.outputs.version != 'v' && startsWith(steps.get_version.outputs.version, 'v')
66+
id: check_tag
67+
run: curl -s -I ${{ format('https://github.com/{0}/releases/tag/{1}', github.repository, steps.get_version.outputs.version) }} | head -n 1 | cut -d$' ' -f2 | xargs printf "statusCode=%s" | xargs echo >> $GITHUB_OUTPUT
68+
- name: Create release
69+
if: steps.check_tag.outputs.statusCode == '404'
70+
id: create_release
71+
uses: actions/create-release@v1
72+
env:
73+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
with:
75+
tag_name: ${{ steps.get_version.outputs.version }}
76+
release_name: ${{ steps.get_version.outputs.version }}
77+
draft: true
78+
prerelease: ${{ contains(steps.get_version.outputs.version, '-') }}
79+
- name: Setup .NET Core
80+
if: steps.check_tag.outputs.statusCode == '404'
81+
uses: actions/setup-dotnet@v5
82+
with:
83+
dotnet-version: ${{ env.DOTNET_VERSION }}
84+
- name: Publish to NuGet
85+
if: steps.check_tag.outputs.statusCode == '404'
86+
run: |
87+
dotnet pack -o out -c Release
88+
dotnet nuget push out/*.nupkg -s https://api.nuget.org/v3/index.json -k ${NUGET_TOKEN}
89+
env:
90+
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}

plugins/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
<RepositoryType>git</RepositoryType>
1111
<RepositoryUrl>https://github.com/neo-project/neo-node.git</RepositoryUrl>
1212
<PackageTags>NEO;Blockchain</PackageTags>
13-
<Version>3.9.0</Version>
13+
<Version>3.9.2</Version>
1414
<TargetFramework>net10.0</TargetFramework>
1515
<RootNamespace>$(PackageId)</RootNamespace>
1616
<ImplicitUsings>enable</ImplicitUsings>
1717
<EnableDynamicLoading>true</EnableDynamicLoading>
1818
</PropertyGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="Neo" Version="3.9.0" />
21+
<PackageReference Include="Neo" Version="3.9.1" />
2222
</ItemGroup>
2323

2424
<ItemGroup>

src/Directory.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
<Copyright>2015-2026 The Neo Project</Copyright>
66
<Authors>The Neo Project</Authors>
77
<TargetFramework>net10.0</TargetFramework>
8-
<Version>3.9.0</Version>
8+
<Version>3.9.2</Version>
99
<Nullable>enable</Nullable>
1010
<ImplicitUsings>enable</ImplicitUsings>
11+
<IsPackable>false</IsPackable>
1112
</PropertyGroup>
1213

1314
<ItemGroup>

src/Neo.CLI/Neo.CLI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="Neo" Version="3.9.0" />
15+
<PackageReference Include="Neo" Version="3.9.1" />
1616
<PackageReference Include="System.CommandLine" Version="2.0.0" />
1717
</ItemGroup>
1818

0 commit comments

Comments
 (0)