Skip to content

Commit 70ee284

Browse files
authored
Readme cleanup.
1 parent 611773e commit 70ee284

1 file changed

Lines changed: 18 additions & 142 deletions

File tree

README.md

Lines changed: 18 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GraphBLAS-sharp
22

3-
GraphBLAS implementation in F#+OpenCL
3+
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.
44

55
---
66

@@ -17,154 +17,30 @@ Package | Stable | Prerelease
1717
--- | --- | ---
1818
GraphBLAS-sharp | [![NuGet Badge](https://buildstats.info/nuget/GraphBLAS-sharp)](https://www.nuget.org/packages/GraphBLAS-sharp/) | [![NuGet Badge](https://buildstats.info/nuget/GraphBLAS-sharp?includePreReleases=true)](https://www.nuget.org/packages/GraphBLAS-sharp/)
1919

20-
---
20+
## Contributing
21+
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.
2123

22-
### Developing
2324

25+
### Build
2426
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
2529

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/)
102-
103-
```sh
104-
git add .
105-
git commit -m "Scaffold"
106-
git remote add origin https://github.com/user/MyCoolNewLib.git
107-
git push -u origin master
108-
```
109-
110-
- [Create your NuGeT API key](https://docs.microsoft.com/en-us/nuget/nuget-org/publish-a-package#create-api-keys)
111-
- [Add your NuGet API key to paket](https://fsprojects.github.io/Paket/paket-config.html#Adding-a-NuGet-API-key)
112-
113-
```sh
114-
paket config add-token "https://www.nuget.org" 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a
115-
```
116-
117-
- 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 then set 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 for this version, in [KeepAChangelog](https://keepachangelog.com/en/1.1.0/) format.
30+
To build and run all tests:
12531

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.
129-
130-
```markdown
131-
## [Unreleased]
132-
133-
### Added
134-
- Does cool stuff!
135-
136-
### Fixed
137-
- Fixes that silly oversight
138-
139-
## [0.1.0] - 2017-03-17
140-
First release
141-
142-
### Added
143-
- This release already has lots of features
144-
145-
[Unreleased]: https://github.com/user/MyCoolNewLib.git/compare/v0.1.0...HEAD
146-
[0.1.0]: https://github.com/user/MyCoolNewLib.git/releases/tag/v0.1.0
147-
```
148-
149-
- 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
16235
```
16336

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
16840
```
41+
To find more options look at [MiniScaffold](https://github.com/TheAngryByrd/MiniScaffold). We use it in our project.
16942

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).
45+
17046

0 commit comments

Comments
 (0)