Skip to content

Commit

Permalink
move to standard build system
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanmaierhofer committed Nov 16, 2021
1 parent ded525b commit bb7d057
Show file tree
Hide file tree
Showing 14 changed files with 157 additions and 525 deletions.
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"paket": {
"version": "6.2.1",
"commands": [
"paket"
]
}
}
}
25 changes: 25 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: linux

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
- name: Setup Paket
run: dotnet tool restore
- name: Install dependencies
run: dotnet paket restore
- name: Build
run: dotnet build src/Uncodium.Eigensystems.sln --configuration Release
25 changes: 25 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: macos

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
- name: Setup Paket
run: dotnet tool restore
- name: Install dependencies
run: dotnet paket restore
- name: Build
run: dotnet build src/Uncodium.Eigensystems.sln --configuration Release
25 changes: 25 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: windows

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
- name: Setup Paket
run: dotnet tool restore
- name: Install dependencies
run: dotnet paket restore
- name: Build
run: dotnet build src/Uncodium.Eigensystems.sln --configuration Release
18 changes: 12 additions & 6 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"version": "2.0.0",
"command": "build.cmd",
"isShellCommand": true,
"args": [],
"showOutput": "always",
"tasks": [
{
"taskName": "compile",
"args": [],
"isBuildCommand": true
"label": "compile",
"type": "shell",
"command": "build.cmd",
"args": [
"compile"
],
"problemMatcher": [],
"group": {
"_id": "build",
"isDefault": false
}
}
]
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[![windows](https://github.com/stefanmaierhofer/Uncodium.Eigensystems/actions/workflows/windows.yml/badge.svg)](https://github.com/stefanmaierhofer/Uncodium.Eigensystems/actions/workflows/windows.yml)
[![linux](https://github.com/stefanmaierhofer/Uncodium.Eigensystems/actions/workflows/linux.yml/badge.svg)](https://github.com/stefanmaierhofer/Uncodium.Eigensystems/actions/workflows/linux.yml)
[![macos](https://github.com/stefanmaierhofer/Uncodium.Eigensystems/actions/workflows/macos.yml/badge.svg)](https://github.com/stefanmaierhofer/Uncodium.Eigensystems/actions/workflowsmacoswindows.yml)

# Efficient computation of eigenvalues and eigenvectors of 3x3 matrices.
See original work at https://www.mpi-hd.mpg.de/personalhomes/globes/3x3/.

Expand Down
21 changes: 3 additions & 18 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,6 @@
SETLOCAL
PUSHD %~dp0

IF NOT exist .paket\paket.exe (
dotnet tool install Paket --tool-path .paket
)

if NOT exist paket.lock (
echo No paket.lock found, running paket install.
.paket\paket.exe install
)

.paket\paket.exe restore
if errorlevel 1 (
exit /b %errorlevel%
)

dotnet packages\build\fake-cli\tools\netcoreapp2.1\any\fake-cli.dll build %*



dotnet tool restore
dotnet paket restore
dotnet build src/Uncodium.Eigensystems.sln --configuration Release
20 changes: 0 additions & 20 deletions build.fsx

This file was deleted.

10 changes: 3 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/bin/bash

if [ ! -f .paket/paket ]; then
dotnet tool install Paket --tool-path .paket
fi

./.paket/paket restore

dotnet packages/build/fake-cli/tools/netcoreapp2.1/any/fake-cli.dll build $@
dotnet tool restore
dotnet paket restore
dotnet build src/Uncodium.Eigensystems.sln --configuration Release
1 change: 0 additions & 1 deletion deploy.targets

This file was deleted.

10 changes: 3 additions & 7 deletions paket.dependencies
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
framework: netstandard2.0
source https://api.nuget.org/v3/index.json

nuget Aardvark.Base ~> 5.1

group Build
storage: none
framework: netstandard2.0
source https://api.nuget.org/v3/index.json
nuget fake-cli ~> 5.20.4-alpha.1642
github aardvark-platform/aardvark.fake:v5

nuget Aardvark.Base ~> 5.1
Loading

0 comments on commit bb7d057

Please sign in to comment.