Skip to content

Commit

Permalink
chore: add a c# sln file to separate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed May 31, 2024
1 parent f41e721 commit 47cc2fe
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/compile_all_targets_c_sharp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"

OUT_DIR="$PROJECT_ROOT/bindings/csharp/runtimes"
OUT_DIR="$PROJECT_ROOT/bindings/csharp/PeerDASKZG.bindings/runtimes"
LIB_TYPE="dynamic"
LIB_NAME="c_peerdas_kzg"
$PROJECT_ROOT/scripts/compile_to_native.sh Darwin arm64 $LIB_NAME $LIB_TYPE $OUT_DIR
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-csharp-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ jobs:
scripts/compile_all_targets_c_sharp.sh
- name: Restore NuGet packages
working-directory: bindings/csharp
working-directory: bindings/csharp/PeerDASKZG.bindings
run: dotnet restore

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

- name: Publish to Nuget
working-directory: bindings/csharp
working-directory: bindings/csharp/PeerDASKZG.bindings
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.
File renamed without changes.
22 changes: 22 additions & 0 deletions bindings/csharp/PeerDASKZG.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PeerDASKZG", "PeerDASKZG.bindings\PeerDASKZG.csproj", "{A1534E2C-AB77-4075-865B-45E0ECEAA409}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A1534E2C-AB77-4075-865B-45E0ECEAA409}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A1534E2C-AB77-4075-865B-45E0ECEAA409}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A1534E2C-AB77-4075-865B-45E0ECEAA409}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A1534E2C-AB77-4075-865B-45E0ECEAA409}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"bindings/java/java_code/build.gradle",
{
"type": "xml",
"path": "bindings/csharp/PeerDASKZG.csproj",
"path": "bindings/csharp/PeerDASKZG.bindings/PeerDASKZG.csproj",
"xpath": "//Project/PropertyGroup/Version"
},
{
Expand Down
2 changes: 1 addition & 1 deletion scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ LIB_NAME="java_peerdas_kzg"
$PROJECT_ROOT/scripts/compile_to_native.sh $OS $ARCH $LIB_NAME $LIB_TYPE $OUT_DIR

# Compile Rust code for c sharp
OUT_DIR="$PROJECT_ROOT/bindings/csharp/runtimes"
OUT_DIR="$PROJECT_ROOT/bindings/csharp/PeerDASKZG.bindings/runtimes"
LIB_TYPE="dynamic"
LIB_NAME="c_peerdas_kzg"
$PROJECT_ROOT/scripts/compile_to_native.sh $OS $ARCH $LIB_NAME $LIB_TYPE $OUT_DIR
Expand Down

0 comments on commit 47cc2fe

Please sign in to comment.