Skip to content

Commit

Permalink
push 1.7.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa committed Mar 27, 2024
1 parent ca78403 commit 0f497a1
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-nuget-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ jobs:

- name: Dotnet pack
working-directory: ${{runner.workspace}}/build/dotnet/Highs
run: dotnet pack -c Release /p:Version=1.6.94
run: dotnet pack -c Release /p:Version=1.7.0.7

- uses: actions/upload-artifact@v4
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-nuget-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Dotnet pack
working-directory: ${{runner.workspace}}/build/dotnet/Highs
run: dotnet pack -c Release /p:Version=1.6.94
run: dotnet pack -c Release /p:Version=1.7.0.7

- name: Add local feed
run: dotnet nuget add source ${{runner.workspace}}/nugets
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:

- name: Dotnet pack
working-directory: ${{runner.workspace}}/build/dotnet/Highs
run: dotnet pack -c Release /p:Version=1.6.94
run: dotnet pack -c Release /p:Version=1.7.0.7

- name: Add local feed
run: dotnet nuget add source ${{runner.workspace}}/nugets
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:

- name: Dotnet pack
working-directory: ${{runner.workspace}}/build/dotnet/Highs
run: dotnet pack -c Release /p:Version=1.6.94
run: dotnet pack -c Release /p:Version=1.7.0.7

- name: Add local feed
run: dotnet nuget add source ${{runner.workspace}}/nugets
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:

- name: Dotnet pack
working-directory: ${{runner.workspace}}/build/dotnet/Highs
run: dotnet pack -c Release /p:Version=1.6.94
run: dotnet pack -c Release /p:Version=1.7.0.7

- name: Add local feed
run: dotnet nuget add source -n name ${{runner.workspace}}\nugets
Expand All @@ -185,5 +185,5 @@ jobs:
dotnet new console
rm Program.cs
cp ${{runner.workspace}}\HiGHS\examples\call_highs_from_csharp.cs .
dotnet add package Highs --version=1.6.94 -s ${{runner.workspace}}\nugets
dotnet add package Highs --version=1.7.0.7 -s ${{runner.workspace}}\nugets
dotnet run
4 changes: 2 additions & 2 deletions Version.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
HIGHS_MAJOR=1
HIGHS_MINOR=6
HIGHS_PATCH=94
HIGHS_MINOR=7
HIGHS_PATCH=0
#PRE_RELEASE=YES
File renamed without changes.
36 changes: 36 additions & 0 deletions nuget/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
This is the documentation page for the .NET wrapper of HiGHS.

## NuGet

The package Highs is on https://www.nuget.org, at https://www.nuget.org/packages/HiGHS/.

It can be added to your C# project with dotnet

```bash
dotnet add package HiGHS --version 1.7.0.7
```

The nuget package contains runtime libraries for

* `win-x64`
* `win-x32`
* `linux-x64`
* `linux-arm64`
* `macos-x64`
* `macos-arm64`

#### Local build

To build the wrapper locally, you would need `cmake` and `dotnet`. CMake can be configured to generate the files required for the dotnet package locally, wtih the `BUILD_DOTNET` cmake variable. Assuming the build directory is called `build`, the package is generated in `build/dotnet/Highs`, with a single runtime library, depending on the platform. From the HiGHS root directory, run

``` bash
cmake -S. -Bbuild -DCSHARP=ON -DBUILD_DOTNET=ON
```

Then, from `build/dotnet/Highs`, run

```bash
dotnet pack -c Release /p:Version=$version
```

At the moment version is set manually.

0 comments on commit 0f497a1

Please sign in to comment.