From a20737b528974e84a5976a6b8ad362757817d940 Mon Sep 17 00:00:00 2001 From: Dmitriy Panfilyonok Date: Thu, 24 Sep 2020 00:54:07 +0300 Subject: [PATCH 1/4] Add gitignore template for VS Code --- .gitignore | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index dfcfd56f..eced4522 100644 --- a/.gitignore +++ b/.gitignore @@ -348,3 +348,15 @@ MigrationBackup/ # Ionide (cross platform F# VS Code tools) working folder .ionide/ + +# Gitignore template for Visual Studio Code +# https://github.com/github/gitignore/blob/master/Global/VisualStudioCode.gitignore +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ \ No newline at end of file From 37f64824f8b744ee4a6c966619dc10ec65f98f8b Mon Sep 17 00:00:00 2001 From: Dmitriy Panfilyonok Date: Thu, 24 Sep 2020 02:39:12 +0300 Subject: [PATCH 2/4] Add Paket and FAKE as local tools --- .config/dotnet-tools.json | 18 ++++++++++++++++++ GraphBLAS-sharp.sln | 18 ++++++++++++++++++ paket.dependencies | 4 ++++ paket.lock | 2 ++ 4 files changed, 42 insertions(+) create mode 100644 .config/dotnet-tools.json create mode 100644 GraphBLAS-sharp.sln create mode 100644 paket.dependencies create mode 100644 paket.lock diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 00000000..bcfb8679 --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,18 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "paket": { + "version": "5.249.2", + "commands": [ + "paket" + ] + }, + "fake-cli": { + "version": "5.20.3", + "commands": [ + "fake" + ] + } + } +} \ No newline at end of file diff --git a/GraphBLAS-sharp.sln b/GraphBLAS-sharp.sln new file mode 100644 index 00000000..2f92ebd9 --- /dev/null +++ b/GraphBLAS-sharp.sln @@ -0,0 +1,18 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26124.0 +MinimumVisualStudioVersion = 15.0.26124.0 +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/paket.dependencies b/paket.dependencies new file mode 100644 index 00000000..f4749c85 --- /dev/null +++ b/paket.dependencies @@ -0,0 +1,4 @@ +source https://api.nuget.org/v3/index.json + +storage: none +framework: netcoreapp3.1, netstandard2.0, netstandard2.1 \ No newline at end of file diff --git a/paket.lock b/paket.lock new file mode 100644 index 00000000..f2c69390 --- /dev/null +++ b/paket.lock @@ -0,0 +1,2 @@ +STORAGE: NONE +RESTRICTION: || (== netcoreapp3.1) (== netstandard2.0) (== netstandard2.1) From e8b8116cc77ce995bae0bfa7bf38ab400e058400 Mon Sep 17 00:00:00 2001 From: Dmitriy Panfilyonok Date: Sat, 26 Sep 2020 15:03:58 +0300 Subject: [PATCH 3/4] Add Brahma.FSharp dependency --- .paket/Paket.Restore.targets | 494 +++++++++++++++++++++++++++++++++++ paket.dependencies | 3 +- paket.lock | 15 ++ 3 files changed, 511 insertions(+), 1 deletion(-) create mode 100644 .paket/Paket.Restore.targets diff --git a/.paket/Paket.Restore.targets b/.paket/Paket.Restore.targets new file mode 100644 index 00000000..8d37e28b --- /dev/null +++ b/.paket/Paket.Restore.targets @@ -0,0 +1,494 @@ + + + + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + $(MSBuildVersion) + 15.0.0 + false + true + + true + $(MSBuildThisFileDirectory) + $(MSBuildThisFileDirectory)..\ + $(PaketRootPath)paket-files\paket.restore.cached + $(PaketRootPath)paket.lock + classic + proj + assembly + native + /Library/Frameworks/Mono.framework/Commands/mono + mono + + + $(PaketRootPath)paket.bootstrapper.exe + $(PaketToolsPath)paket.bootstrapper.exe + $([System.IO.Path]::GetDirectoryName("$(PaketBootStrapperExePath)"))\ + + "$(PaketBootStrapperExePath)" + $(MonoPath) --runtime=v4.0.30319 "$(PaketBootStrapperExePath)" + + + + + true + true + + + True + + + False + + $(BaseIntermediateOutputPath.TrimEnd('\').TrimEnd('\/')) + + + + + + + + + $(PaketRootPath)paket + $(PaketToolsPath)paket + + + + + + $(PaketRootPath)paket.exe + $(PaketToolsPath)paket.exe + + + + + + <_DotnetToolsJson Condition="Exists('$(PaketRootPath)/.config/dotnet-tools.json')">$([System.IO.File]::ReadAllText("$(PaketRootPath)/.config/dotnet-tools.json")) + <_ConfigContainsPaket Condition=" '$(_DotnetToolsJson)' != ''">$(_DotnetToolsJson.Contains('"paket"')) + <_ConfigContainsPaket Condition=" '$(_ConfigContainsPaket)' == ''">false + + + + + + + + + + + <_PaketCommand>dotnet paket + + + + + + $(PaketToolsPath)paket + $(PaketBootStrapperExeDir)paket + + + paket + + + + + <_PaketExeExtension>$([System.IO.Path]::GetExtension("$(PaketExePath)")) + <_PaketCommand Condition=" '$(_PaketCommand)' == '' AND '$(_PaketExeExtension)' == '.dll' ">dotnet "$(PaketExePath)" + <_PaketCommand Condition=" '$(_PaketCommand)' == '' AND '$(OS)' != 'Windows_NT' AND '$(_PaketExeExtension)' == '.exe' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)" + <_PaketCommand Condition=" '$(_PaketCommand)' == '' ">"$(PaketExePath)" + + + + + + + + + + + + + + + + + + + + + true + $(NoWarn);NU1603;NU1604;NU1605;NU1608 + false + true + + + + + + + + + $([System.IO.File]::ReadAllText('$(PaketRestoreCacheFile)')) + + + + + + + $([System.Text.RegularExpressions.Regex]::Split(`%(Identity)`, `": "`)[0].Replace(`"`, ``).Replace(` `, ``)) + $([System.Text.RegularExpressions.Regex]::Split(`%(Identity)`, `": "`)[1].Replace(`"`, ``).Replace(` `, ``)) + + + + + %(PaketRestoreCachedKeyValue.Value) + %(PaketRestoreCachedKeyValue.Value) + + + + + true + false + true + + + + + true + + + + + + + + + + + + + + + + + + + $(PaketIntermediateOutputPath)\$(MSBuildProjectFile).paket.references.cached + + $(MSBuildProjectFullPath).paket.references + + $(MSBuildProjectDirectory)\$(MSBuildProjectName).paket.references + + $(MSBuildProjectDirectory)\paket.references + + false + true + true + references-file-or-cache-not-found + + + + + $([System.IO.File]::ReadAllText('$(PaketReferencesCachedFilePath)')) + $([System.IO.File]::ReadAllText('$(PaketOriginalReferencesFilePath)')) + references-file + false + + + + + false + + + + + true + target-framework '$(TargetFramework)' or '$(TargetFrameworks)' files @(PaketResolvedFilePaths) + + + + + + + + + + + false + true + + + + + + + + + + + $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',').Length) + $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[0]) + $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[1]) + $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[4]) + $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[5]) + + + %(PaketReferencesFileLinesInfo.PackageVersion) + All + runtime + runtime + true + true + + + + + $(PaketIntermediateOutputPath)/$(MSBuildProjectFile).paket.clitools + + + + + + + + + $([System.String]::Copy('%(PaketCliToolFileLines.Identity)').Split(',')[0]) + $([System.String]::Copy('%(PaketCliToolFileLines.Identity)').Split(',')[1]) + + + %(PaketCliToolFileLinesInfo.PackageVersion) + + + + + + + + + + false + + + + + + <_NuspecFilesNewLocation Include="$(PaketIntermediateOutputPath)\$(Configuration)\*.nuspec"/> + + + + + + $(MSBuildProjectDirectory)/$(MSBuildProjectFile) + true + false + true + false + true + false + true + false + true + $(PaketIntermediateOutputPath)\$(Configuration) + $(PaketIntermediateOutputPath) + + + + <_NuspecFiles Include="$(AdjustedNuspecOutputPath)\*.$(PackageVersion.Split(`+`)[0]).nuspec"/> + + + + + + + + + + + + + + + + + + + + + diff --git a/paket.dependencies b/paket.dependencies index f4749c85..37e813e9 100644 --- a/paket.dependencies +++ b/paket.dependencies @@ -1,4 +1,5 @@ source https://api.nuget.org/v3/index.json storage: none -framework: netcoreapp3.1, netstandard2.0, netstandard2.1 \ No newline at end of file +framework: netcoreapp3.1, netstandard2.0, netstandard2.1 +nuget Brahma.FSharp \ No newline at end of file diff --git a/paket.lock b/paket.lock index f2c69390..1944a98f 100644 --- a/paket.lock +++ b/paket.lock @@ -1,2 +1,17 @@ STORAGE: NONE RESTRICTION: || (== netcoreapp3.1) (== netstandard2.0) (== netstandard2.1) +NUGET + remote: https://api.nuget.org/v3/index.json + Brahma.FSharp (1.1.5) + FSharp.Quotations.Evaluator + FSharpx.Collections (>= 1.15) + OpenCL.NET (2.2.9) + YC.PrettyPrinter (>= 0.0.5) + FSharp.Core (4.7.2) + FSharp.Quotations.Evaluator (2.1) + FSharp.Core (>= 4.3.1) + FSharpx.Collections (2.1.3) + FSharp.Core (>= 4.3.4) + OpenCL.NET (2.2.9) + YC.PrettyPrinter (0.0.5) + FSharp.Core From 1928754a17dae000342b088162f144bac139dba7 Mon Sep 17 00:00:00 2001 From: Dmitriy Panfilyonok Date: Sun, 25 Oct 2020 02:37:46 +0300 Subject: [PATCH 4/4] Add appveyor.yml --- appveyor.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..5c1c6b7e --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,24 @@ +image: Visual Studio 2019 + +install: + # Install OpenCL headers and libraries + - set NUGETDIR=C:\NUGET + - nuget install opencl-nug -Version 0.777.77 -OutputDirectory %NUGETDIR% + - dir %NUGETDIR%\opencl-nug.0.777.77\build\native\ + - set OCL_ROOT=%NUGETDIR%\opencl-nug.0.777.77\build\native + # Install OpenCL Runtime + - choco install opencl-intel-cpu-runtime + # Check if it's working + - ps: appveyor DownloadFile "https://ci.appveyor.com/api/projects/oblomov/clinfo/artifacts/clinfo.exe?job=platform:+x64" -FileName clinfo.exe + - .\clinfo.exe + +before_build: + - cmd: dotnet --version + - cmd: dotnet tool restore + - cmd: dotnet paket restore + +build_script: + - cmd: dotnet build + +test_script: + - cmd: dotnet test \ No newline at end of file