Skip to content

Commit 47cc2fe

Browse files
committed
chore: add a c# sln file to separate tests
1 parent f41e721 commit 47cc2fe

File tree

9 files changed

+28
-6
lines changed

9 files changed

+28
-6
lines changed

.github/scripts/compile_all_targets_c_sharp.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
55
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
66

7-
OUT_DIR="$PROJECT_ROOT/bindings/csharp/runtimes"
7+
OUT_DIR="$PROJECT_ROOT/bindings/csharp/PeerDASKZG.bindings/runtimes"
88
LIB_TYPE="dynamic"
99
LIB_NAME="c_peerdas_kzg"
1010
$PROJECT_ROOT/scripts/compile_to_native.sh Darwin arm64 $LIB_NAME $LIB_TYPE $OUT_DIR

.github/workflows/release-csharp-bindings.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ jobs:
6262
scripts/compile_all_targets_c_sharp.sh
6363
6464
- name: Restore NuGet packages
65-
working-directory: bindings/csharp
65+
working-directory: bindings/csharp/PeerDASKZG.bindings
6666
run: dotnet restore
6767

6868
- name: Package with dotnet pack
69-
working-directory: bindings/csharp
69+
working-directory: bindings/csharp/PeerDASKZG.bindings
7070
run: dotnet pack -c release --no-restore -o nupkgs -p:Version=${{ env.VERSION }} -p:ContinuousIntegrationBuild=true
7171

7272
- name: Publish to Nuget
73-
working-directory: bindings/csharp
73+
working-directory: bindings/csharp/PeerDASKZG.bindings
7474
run: dotnet nuget push nupkgs/*.nupkg --api-key ${{ secrets.NUGET_RELEASE_TOKEN }} --source https://api.nuget.org/v3/index.json
File renamed without changes.
File renamed without changes.
File renamed without changes.

bindings/csharp/PeerDASKZG.sln

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PeerDASKZG", "PeerDASKZG.bindings\PeerDASKZG.csproj", "{A1534E2C-AB77-4075-865B-45E0ECEAA409}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(SolutionProperties) = preSolution
14+
HideSolutionNode = FALSE
15+
EndGlobalSection
16+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
17+
{A1534E2C-AB77-4075-865B-45E0ECEAA409}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
18+
{A1534E2C-AB77-4075-865B-45E0ECEAA409}.Debug|Any CPU.Build.0 = Debug|Any CPU
19+
{A1534E2C-AB77-4075-865B-45E0ECEAA409}.Release|Any CPU.ActiveCfg = Release|Any CPU
20+
{A1534E2C-AB77-4075-865B-45E0ECEAA409}.Release|Any CPU.Build.0 = Release|Any CPU
21+
EndGlobalSection
22+
EndGlobal

release-please-config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"bindings/java/java_code/build.gradle",
4545
{
4646
"type": "xml",
47-
"path": "bindings/csharp/PeerDASKZG.csproj",
47+
"path": "bindings/csharp/PeerDASKZG.bindings/PeerDASKZG.csproj",
4848
"xpath": "//Project/PropertyGroup/Version"
4949
},
5050
{

scripts/compile.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ LIB_NAME="java_peerdas_kzg"
2020
$PROJECT_ROOT/scripts/compile_to_native.sh $OS $ARCH $LIB_NAME $LIB_TYPE $OUT_DIR
2121

2222
# Compile Rust code for c sharp
23-
OUT_DIR="$PROJECT_ROOT/bindings/csharp/runtimes"
23+
OUT_DIR="$PROJECT_ROOT/bindings/csharp/PeerDASKZG.bindings/runtimes"
2424
LIB_TYPE="dynamic"
2525
LIB_NAME="c_peerdas_kzg"
2626
$PROJECT_ROOT/scripts/compile_to_native.sh $OS $ARCH $LIB_NAME $LIB_TYPE $OUT_DIR

0 commit comments

Comments
 (0)