Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build+test+deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet fsi build.fsx -t Build
run: make
- name: Run tests
run: dotnet fsi build.fsx -t Test
run: make check
- name: Run FSharpLint on itself
run: dotnet fsi build.fsx -t SelfCheck
run: make selfcheck


deployReleaseBinaries:
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Run Fornax
run: dotnet fsi build.fsx -t Docs
run: make docs
- name: Deploy (if tag)
if: startsWith(github.ref, 'refs/tags/')
uses: peaceiris/actions-gh-pages@v3
Expand Down
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
all:
@which dotnet > /dev/null || { echo "ERROR: 'dotnet' not found. Please ensure you have installed .NET (the version specified in global.json)" >&2; exit 1; }
dotnet fsi build.fsx --target Build

check:
dotnet fsi build.fsx --target Test

selfcheck:
dotnet fsi build.fsx --target SelfCheck

docs:
dotnet fsi build.fsx --target Docs

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ Package | Version

1. Make sure you've installed the .NET version defined in [global.json](global.json)
2. Run `dotnet tool restore` to install all developer tools required to build the project
3. Run `dotnet fsi build.fsx -t Build` to build (which executes the `Build` target from the FAKE-based [build script](build.fsx))
4. To run tests use `dotnet fsi build.fsx -t Test`
5. To build documentation use `dotnet fsi build.fsx -t Docs`
3. Run `make` to build (which executes the `Build` target from the FAKE-based [build script](build.fsx))
4. To run tests use `make check`
5. To build documentation use `make docs`

## How to work with documentation

Expand Down
23 changes: 23 additions & 0 deletions make.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@ECHO OFF
where /q dotnet
IF ERRORLEVEL 1 (
ECHO "ERROR: 'dotnet' not found. Please ensure you have installed .NET (the version specified in global.json)" && EXIT /b 1
) ELSE (
IF "%~1" == "" (
dotnet fsi build.fsx --target Build
) ELSE (
IF "%~1" == "check" (
dotnet fsi build.fsx --target Test
) ELSE (
IF "%~1" == "selfcheck" (
dotnet fsi build.fsx --target SelfCheck
) ELSE (
IF "%~1" == "docs" (
dotnet fsi build.fsx --target Docs
) ELSE (
ECHO "Target was not recognized" && EXIT /b 1
)
)
)
)
)
Loading