-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make type providers usable in *.fsx scripts
Package builds now generate a copy of FSharp.Data.DesignTime.dll This avoids the assembly path resolution problems reported in many places, for example: - fsprojects/FSharp.Data/issues/844 - dotnet/netcorecli-fsc/issues/16 - https://stackoverflow.com/q/3102472 Unfortunately we can't use any of the better solutions explained at dotnet/fsharp/issues/3303, since they only apply to full-fledged .NET projects, not scripts
- Loading branch information
Showing
19 changed files
with
123 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,88 @@ | ||
name: NuGet | ||
on: | ||
push: | ||
tags: | ||
- '**' | ||
branches: | ||
- main | ||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
package: | ||
runs-on: windows-latest | ||
env: | ||
DOTNET_NOLOGO: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
- name: Pre-test install | ||
- name: Pre-build Install | ||
uses: actions/setup-dotnet@v1.7.2 | ||
with: | ||
dotnet-version: '5.0.102' | ||
- name: Cache packages | ||
uses: actions/cache@v2.1.5 | ||
dotnet-version: '5.0.202' | ||
- name: Build package | ||
run: scripts\pack | ||
- name: Save package | ||
uses: actions/upload-artifact@v2.2.3 | ||
with: | ||
path: ~/.nuget/packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('src/Fornax.Seo/Fornax.Seo.fsproj') }} | ||
restore-keys: |- | ||
${{ runner.os }}-nuget- | ||
${{ runner.os }}- | ||
- name: Run tests | ||
run: scripts/ci | ||
name: Fornax.Seo.nupkg | ||
path: release/*.nupkg | ||
retention-days: 30 | ||
if-no-files-found: error | ||
|
||
publish: | ||
needs: test | ||
runs-on: windows-latest | ||
needs: package | ||
runs-on: ubuntu-20.04 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
DOTNET_NOLOGO: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
fetch-depth: 0 | ||
- name: Pre-build Install | ||
uses: actions/setup-dotnet@v1.7.2 | ||
with: | ||
dotnet-version: '5.0.102' | ||
- name: Release package | ||
dotnet-version: '5.0.202' | ||
- name: Cache packages | ||
uses: actions/cache@v2.1.5 | ||
with: | ||
path: ~/.nuget/packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('src/Fornax.Seo/Directory.Build.props') }} | ||
restore-keys: |- | ||
${{ runner.os }}-nuget- | ||
${{ runner.os }}- | ||
- name: Collect release info | ||
run: |- | ||
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
echo -e $(scripts/changelog) > release_notes.txt | ||
- name: Retrieve package | ||
uses: actions/download-artifact@v2.0.9 | ||
id: fetch | ||
with: | ||
name: Fornax.Seo.nupkg | ||
path: '~/release' | ||
- name: Prepare release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: ${{ steps.fetch.outputs.download-path }}/*.nupkg | ||
bodyFile: release_notes.txt | ||
name: ${{ env.RELEASE_VERSION }} | ||
draft: true | ||
allowUpdates: true | ||
artifactErrorsFailBuild: true | ||
replacesArtifacts: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish release | ||
run: |- | ||
scripts\gendocs | ||
scripts\pack | ||
# dotnet nuget push release\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate | ||
dotnet nuget push release/Fornax.Seo.*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate | ||
scripts/gendocs | ||
- name: Publish docs | ||
uses: peaceiris/actions-gh-pages@v3.8.0 | ||
with: | ||
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | ||
enable_jekyll: false | ||
publish_dir: './output' | ||
publish_branch: docs | ||
user_name: 'Fornax.Seo [action]' | ||
user_email: 'Fornax.Seo@users.noreply.github.com' | ||
commit_message: '${{ github.event.head_commit.message }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "src/Fornax"] | ||
path = src/Fornax | ||
url = https://github.com/ionide/Fornax.git | ||
url = https://github.com/ionide/Fornax.git | ||
[submodule "src/FSharp.Data"] | ||
path = src/FSharp.Data | ||
url = https://github.com/fsprojects/FSharp.Data.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
## 0.1.0 | ||
Initial release | ||
|
||
## 0.1.0-a60fd1f | ||
Start bundling FSharp.Data.DesignTime.dll since consuming F# scripts will be broken without it. | ||
See, for example, <https://stackoverflow.com/q/3102472> | ||
|
||
## 0.1.0-d8291ee (DEPRECATED) | ||
Initial preview release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
HEAD=$(git describe --always) | ||
PREV_REF=$(git describe --always $HEAD)^ | ||
PREV=$(git describe --always --abbrev=0 ${PREV_REF}) | ||
git log --oneline ${PREV}..${HEAD} | awk '{printf("%s\\n",$0)}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#!/usr/bin/env bash | ||
dotnet tool restore --tool-manifest src/Fornax/.config/dotnet-tools.json | ||
dotnet test /v:m test/Fornax.Seo.Tests/Fornax.Seo.Tests.fsproj | ||
dotnet test /v:m /p:nowarn="3218 3390" test/Fornax.Seo.Tests/Fornax.Seo.Tests.fsproj | ||
cd example/Fornax.Seo.Example | ||
./build $1 | ||
cd ../.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
@echo off | ||
dotnet tool restore --tool-manifest src/Fornax/.config/dotnet-tools.json | ||
dotnet test /v:m test/Fornax.Seo.Tests/Fornax.Seo.Tests.fsproj | ||
dotnet test /v:m /p:nowarn="3218 3390" test/Fornax.Seo.Tests/Fornax.Seo.Tests.fsproj | ||
cd example\Fornax.Seo.Example | ||
build %1 | ||
cd ..\.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule FSharp.Data
added at
311fa4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<FSharpDataVersion>4.1.0</FSharpDataVersion> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters