You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GraphBLAS# is a GPGPU-based GraphBLAS implementation in F#. To utilize GPGPUs we use [Brahma.FSharp](https://github.com/YaccConstructor/Brahma.FSharp). So, GraphBLAS# can utilize any OpenCL compatible device.
Contributions, issues and feature requests are welcome.
22
+
Feel free to check [issues](https://github.com/YaccConstructor/GraphBLAS-sharp/issues) page if you want to contribute.
21
23
22
-
### Developing
23
24
25
+
### Build
24
26
Make sure the following **requirements** are installed on your system:
27
+
-[dotnet SDK](https://dotnet.microsoft.com/en-us/download/dotnet/5.0) 5.0 or higher
28
+
- OpenCL-compatible device and respective OpenCL driver
25
29
26
-
-[dotnet SDK](https://www.microsoft.com/net/download/core) 3.0 or higher
27
-
-[Mono](http://www.mono-project.com/) if you're on Linux or macOS.
28
-
29
-
or
30
-
31
-
-[VSCode Dev Container](https://code.visualstudio.com/docs/remote/containers)
32
-
33
-
34
-
---
35
-
36
-
### Environment Variables
37
-
38
-
-`CONFIGURATION` will set the [configuration](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-build?tabs=netcore2x#options) of the dotnet commands. If not set, it will default to Release.
39
-
-`CONFIGURATION=Debug ./build.sh` will result in `-c` additions to commands such as in `dotnet build -c Debug`
40
-
-`GITHUB_TOKEN` will be used to upload release notes and Nuget packages to GitHub.
41
-
- Be sure to set this before releasing
42
-
-`DISABLE_COVERAGE` Will disable running code coverage metrics. AltCover can have [severe performance degradation](https://github.com/SteveGilham/altcover/issues/57) so it's worth disabling when looking to do a quicker feedback loop.
43
-
-`DISABLE_COVERAGE=1 ./build.sh`
44
-
45
-
46
-
---
47
-
48
-
### Building
49
-
50
-
51
-
```sh
52
-
> build.cmd <optional buildtarget> // on windows
53
-
$ ./build.sh <optional buildtarget>// on unix
54
-
```
55
-
56
-
The bin of your library should look similar to:
57
-
58
-
```
59
-
$ tree src/MyCoolNewLib/bin/
60
-
src/MyCoolNewLib/bin/
61
-
└── Debug
62
-
├── net461
63
-
│ ├── FSharp.Core.dll
64
-
│ ├── MyCoolNewLib.dll
65
-
│ ├── MyCoolNewLib.pdb
66
-
│ ├── MyCoolNewLib.xml
67
-
└── netstandard2.1
68
-
├── MyCoolNewLib.deps.json
69
-
├── MyCoolNewLib.dll
70
-
├── MyCoolNewLib.pdb
71
-
└── MyCoolNewLib.xml
72
-
73
-
```
74
-
75
-
---
76
-
77
-
### Build Targets
78
-
79
-
-`Clean` - Cleans artifact and temp directories.
80
-
-`DotnetRestore` - Runs [dotnet restore](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-restore?tabs=netcore2x) on the [solution file](https://docs.microsoft.com/en-us/visualstudio/extensibility/internals/solution-dot-sln-file?view=vs-2019).
81
-
-[`DotnetBuild`](#Building) - Runs [dotnet build](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-build?tabs=netcore2x) on the [solution file](https://docs.microsoft.com/en-us/visualstudio/extensibility/internals/solution-dot-sln-file?view=vs-2019).
82
-
-`DotnetTest` - Runs [dotnet test](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-test?tabs=netcore21) on the [solution file](https://docs.microsoft.com/en-us/visualstudio/extensibility/internals/solution-dot-sln-file?view=vs-2019).
83
-
-`GenerateCoverageReport` - Code coverage is run during `DotnetTest` and this generates a report via [ReportGenerator](https://github.com/danielpalme/ReportGenerator).
84
-
-`WatchTests` - Runs [dotnet watch](https://docs.microsoft.com/en-us/aspnet/core/tutorials/dotnet-watch?view=aspnetcore-3.0) with the test projects. Useful for rapid feedback loops.
85
-
-`GenerateAssemblyInfo` - Generates [AssemblyInfo](https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.applicationservices.assemblyinfo?view=netframework-4.8) for libraries.
86
-
-`DotnetPack` - Runs [dotnet pack](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-pack). This includes running [Source Link](https://github.com/dotnet/sourcelink).
87
-
-`SourceLinkTest` - Runs a Source Link test tool to verify Source Links were properly generated.
88
-
-`PublishToNuGet` - Publishes the NuGet packages generated in `DotnetPack` to NuGet via [paket push](https://fsprojects.github.io/Paket/paket-push.html).
89
-
-`GitRelease` - Creates a commit message with the [Release Notes](https://fake.build/apidocs/v5/fake-core-releasenotes.html) and a git tag via the version in the `Release Notes`.
90
-
-`GitHubRelease` - Publishes a [GitHub Release](https://help.github.com/en/articles/creating-releases) with the Release Notes and any NuGet packages.
91
-
-`FormatCode` - Runs [Fantomas](https://github.com/fsprojects/fantomas) on the solution file.
92
-
-`BuildDocs` - Generates Documentation from `docsSrc` and the [XML Documentation Comments](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/) from your libraries in `src`.
93
-
-`WatchDocs` - Generates documentation and starts a webserver locally. It will rebuild and hot reload if it detects any changes made to `docsSrc` files, libraries in `src`, or the `docsTool` itself.
94
-
-`ReleaseDocs` - Will stage, commit, and push docs generated in the `BuildDocs` target.
95
-
-[`Release`](#Releasing) - Task that runs all release type tasks such as `PublishToNuGet`, `GitRelease`, `ReleaseDocs`, and `GitHubRelease`. Make sure to read [Releasing](#Releasing) to setup your environment correctly for releases.
96
-
---
97
-
98
-
99
-
### Releasing
100
-
101
-
-[Start a git repo with a remote](https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/)
- or set the environment variable `NUGET_TOKEN` to your key
118
-
119
-
120
-
- [Create a GitHub OAuth Token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/)
121
-
- You can thenset the environment variable `GITHUB_TOKEN` to upload release notes and artifacts to github
122
-
- Otherwise it will fallback to username/password
123
-
124
-
- Then update the `CHANGELOG.md` with an "Unreleased" section containing release notes forthis version,in [KeepAChangelog](https://keepachangelog.com/en/1.1.0/) format.
30
+
To build and run all tests:
125
31
126
-
NOTE: Its highly recommend to add a link to the Pull Request next to the release note that it affects. The reason for this is when the `RELEASE` target is run, it will add these new notes into the body of git commit. GitHub will notice the links and will update the Pull Request with what commit referenced it saying ["added a commit that referenced this pull request"](https://github.com/TheAngryByrd/MiniScaffold/pull/179#ref-commit-837ad59). Since the build script automates the commit message, it will say "Bump Version to x.y.z". The benefit of this is when users goto a Pull Request, it will be clear when and which version those code changes released. Also when reading the `CHANGELOG`, if someone is curious about how or why those changes were made, they can easily discover the work and discussions.
127
-
128
-
Here's an example of adding an "Unreleased" section to a `CHANGELOG.md` with a `0.1.0` section already released.
- You can then use the `Release` target, specifying the version number either in the `RELEASE_VERSION` environment
150
-
variable, or else as a parameter after the target name. This will:
151
-
- update `CHANGELOG.md`, moving changes from the `Unreleased` section into a new `0.2.0` section
152
-
- if there were any prerelease versions of 0.2.0 in the changelog, it will also collect their changes into the final 0.2.0 entry
153
-
- make a commit bumping the version: `Bump version to 0.2.0` and adds the new changelog section to the commit's body
154
-
- publish the package to NuGet
155
-
- push a git tag
156
-
- create a GitHub release for that git tag
157
-
158
-
macOS/Linux Parameter:
159
-
160
-
```sh
161
-
./build.sh Release 0.2.0
32
+
- on Windows
33
+
```cmd
34
+
build.cmd
162
35
```
163
36
164
-
macOS/Linux Environment Variable:
165
-
166
-
```sh
167
-
RELEASE_VERSION=0.2.0 ./build.sh Release
37
+
- on Linux/macOS
38
+
```shell
39
+
./build.sh
168
40
```
41
+
To find more options look at [MiniScaffold](https://github.com/TheAngryByrd/MiniScaffold). We use it in our project.
169
42
43
+
## License
44
+
This project licensed under MIT License. License text can be found in the [license file](https://github.com/YaccConstructor/GraphBLAS-sharp/blob/master/LICENSE.md).
0 commit comments