Skip to content

Commit 95cf7da

Browse files
committed
Support netstandard2.0
1 parent ce5b67d commit 95cf7da

File tree

3 files changed

+50
-22
lines changed

3 files changed

+50
-22
lines changed

.github/workflows/pr.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: PR
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
strategy:
9+
matrix:
10+
os: [ ubuntu-latest, macos-latest, windows-latest ]
11+
fail-fast: false
12+
runs-on: ${{ matrix.os }}
13+
name: Build on ${{ matrix.os }} using dotnet version ${{ matrix.dotnet }}
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Build
17+
run: dotnet build --configuration Release
18+
- name: Test
19+
run: dotnet test --no-restore --verbosity normal

.github/workflows/publish_to_NuGet.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,31 @@ name: Publish to nuget
22

33
on:
44
release:
5-
types: [created, edited]
5+
types: [ created, edited ]
66

77
jobs:
8-
publish:
9-
runs-on: ubuntu-latest
10-
8+
build:
9+
strategy:
10+
matrix:
11+
os: [ ubuntu-latest, macos-latest, windows-latest ]
12+
fail-fast: false
13+
runs-on: ${{ matrix.os }}
14+
name: Build on ${{ matrix.os }} using dotnet version ${{ matrix.dotnet }}
1115
steps:
1216
- uses: actions/checkout@v2
13-
- name: Install dependencies
14-
run: dotnet restore
1517
- name: Build
16-
run: dotnet build --configuration Release --no-restore
18+
run: dotnet build --configuration Release
1719
- name: Test
1820
run: dotnet test --no-restore --verbosity normal
21+
22+
publish:
23+
runs-on: ubuntu-latest
24+
needs: build
25+
steps:
26+
- uses: actions/checkout@v2
1927
- name: Create the package
2028
run: dotnet pack --configuration Release -o Release -p:PackageVersion=${GITHUB_REF/refs\/tags\/v/''} --include-source
2129
- name: Publish the package to NuGet
2230
env:
23-
NUGET_AUTH_TOKEN: ${{secrets.SQLSTREAMSTORE_NUGET_AUTH_TOKEN}}
31+
NUGET_AUTH_TOKEN: ${{secrets.PRELUDE_NUGET_AUTH_TOKEN}}
2432
run: dotnet nuget push Release/*.nupkg --skip-duplicate --no-symbols true --source https://api.nuget.org/v3/index.json -k ${NUGET_AUTH_TOKEN}

src/SqlStreamStore.FSharp.fsproj

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp3.1;net5.0</TargetFrameworks>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55
<PackageId>SqlStreamStore.FSharp</PackageId>
66
<Authors>Jamil Maqdis Anton</Authors>
77
<PackageDescription>Thin F# wrapper around SQLStreamStore</PackageDescription>
@@ -12,22 +12,23 @@
1212
</PropertyGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Update="FSharp.Core" Version="5.0.0" />
16-
<PackageReference Include="FSharp.Prelude" Version="4.0.0" />
17-
<PackageReference Include="FSharp.SystemTextJson" Version="0.16.6" />
18-
<PackageReference Include="Npgsql" Version="5.0.4" />
19-
<PackageReference Include="SqlStreamStore" Version="1.2.0-beta.8" />
20-
<PackageReference Include="SqlStreamStore.Postgres" Version="1.2.0-beta.8" />
15+
<PackageReference Update="FSharp.Core" Version="5.0.0"/>
16+
<PackageReference Include="FSharp.Core" Version="5.0.0"/>
17+
<PackageReference Include="FSharp.Prelude" Version="4.0.3"/>
18+
<PackageReference Include="FSharp.SystemTextJson" Version="0.16.6"/>
19+
<PackageReference Include="Npgsql" Version="5.0.4"/>
20+
<PackageReference Include="SqlStreamStore" Version="1.2.0-beta.8"/>
21+
<PackageReference Include="SqlStreamStore.Postgres" Version="1.2.0-beta.8"/>
2122
</ItemGroup>
2223

2324
<ItemGroup>
24-
<Compile Include="SqlStreamStoreExtensions.fs" />
25-
<Compile Include="Create.fs" />
26-
<Compile Include="Connect.fs" />
27-
<Compile Include="Append.fs" />
28-
<Compile Include="Read.fs" />
29-
<Compile Include="Get.fs" />
30-
<Compile Include="Subscribe.fs" />
25+
<Compile Include="SqlStreamStoreExtensions.fs"/>
26+
<Compile Include="Create.fs"/>
27+
<Compile Include="Connect.fs"/>
28+
<Compile Include="Append.fs"/>
29+
<Compile Include="Read.fs"/>
30+
<Compile Include="Get.fs"/>
31+
<Compile Include="Subscribe.fs"/>
3132
</ItemGroup>
3233

3334
</Project>

0 commit comments

Comments
 (0)