Skip to content

Commit 03ef337

Browse files
authored
Merge pull request #32 from koculu/upgrade-to-net90
Upgrade to the net 9.0
2 parents 1b36108 + 0d43702 commit 03ef337

File tree

6 files changed

+58
-56
lines changed

6 files changed

+58
-56
lines changed

.github/workflows/dotnet.yml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,35 @@ name: Build and Test
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ['main']
66
paths-ignore:
7-
- '*.md'
7+
- '*.md'
88
pull_request:
9-
branches: [ "main" ]
9+
branches: ['main']
1010
paths-ignore:
11-
- '*.md'
11+
- '*.md'
1212

1313
jobs:
1414
build:
15-
1615
runs-on: ubuntu-latest
1716
steps:
18-
- uses: actions/checkout@v3
19-
- name: Setup .NET
20-
uses: actions/setup-dotnet@v3
21-
with:
22-
dotnet-version: |
23-
7.0.x
24-
6.0.x
25-
- name: Display dotnet version
26-
run: dotnet --version
27-
- name: Restore dependencies
28-
working-directory: ./src
29-
run: dotnet restore
30-
- name: Build
31-
run: dotnet build --configuration Release --no-restore
32-
working-directory: ./src
33-
- name: Test
34-
run: dotnet test --no-build --configuration Release --verbosity normal
35-
working-directory: ./src
17+
- uses: actions/checkout@v3
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v3
20+
with:
21+
dotnet-version: |
22+
9.0.x
23+
8.0.x
24+
7.0.x
25+
6.0.x
26+
- name: Display dotnet version
27+
run: dotnet --version
28+
- name: Restore dependencies
29+
working-directory: ./src
30+
run: dotnet restore
31+
- name: Build
32+
run: dotnet build --configuration Release --no-restore
33+
working-directory: ./src
34+
- name: Test
35+
run: dotnet test --no-build --configuration Release --verbosity normal
36+
working-directory: ./src

.github/workflows/publish-nuget.yml

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,34 @@ on:
44
workflow_dispatch:
55
inputs:
66
name:
7-
description: "When you press run workflow, the nuget package will be published."
8-
default: "I understand."
7+
description: 'When you press run workflow, the nuget package will be published.'
8+
default: 'I understand.'
99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312
steps:
14-
- uses: actions/checkout@v3
15-
- name: Setup .NET
16-
uses: actions/setup-dotnet@v3
17-
with:
18-
dotnet-version: |
19-
7.0.x
20-
6.0.x
21-
- name: Display dotnet version
22-
run: dotnet --version
23-
- name: Restore dependencies
24-
working-directory: ./src
25-
run: dotnet restore
26-
- name: Build
27-
run: dotnet build --configuration Release --no-restore
28-
working-directory: ./src
29-
- name: Test
30-
run: dotnet test --no-build --configuration Release --verbosity normal
31-
working-directory: ./src
32-
- name: Publish the package to nuget.org
33-
run: dotnet nuget push Topaz/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
34-
env:
35-
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
36-
working-directory: ./src
13+
- uses: actions/checkout@v3
14+
- name: Setup .NET
15+
uses: actions/setup-dotnet@v3
16+
with:
17+
dotnet-version: |
18+
9.0.x
19+
8.0.x
20+
7.0.x
21+
6.0.x
22+
- name: Display dotnet version
23+
run: dotnet --version
24+
- name: Restore dependencies
25+
working-directory: ./src
26+
run: dotnet restore
27+
- name: Build
28+
run: dotnet build --configuration Release --no-restore
29+
working-directory: ./src
30+
- name: Test
31+
run: dotnet test --no-build --configuration Release --verbosity normal
32+
working-directory: ./src
33+
- name: Publish the package to nuget.org
34+
run: dotnet nuget push Topaz/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
35+
env:
36+
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
37+
working-directory: ./src

src/Topaz.Benchmark/Topaz.Benchmark.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net8.0</TargetFrameworks>
5+
<TargetFrameworks>net9.0</TargetFrameworks>
66
<RootNamespace>Tenray.Topaz</RootNamespace>
77
<RunAnalyzersDuringBuild>False</RunAnalyzersDuringBuild>
88
<RunAnalyzersDuringLiveAnalysis>False</RunAnalyzersDuringLiveAnalysis>

src/Topaz.Test/Topaz.Test.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0</TargetFrameworks>
4+
<TargetFrameworks>net9.0</TargetFrameworks>
55

66
<IsPackable>false</IsPackable>
77
<RootNamespace>Tenray.Topaz</RootNamespace>
@@ -13,7 +13,7 @@
1313
<ItemGroup>
1414
<PackageReference Include="NUnit" Version="3.13.3" />
1515
<PackageReference Include="NUnit3TestAdapter" Version="4.3.0" />
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0-preview-20221003-04" />
16+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

src/Topaz/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<Authors>Ahmed Yasin Koculu</Authors>
66
<PackageId>Topaz</PackageId>
77
<Title>Topaz</Title>
8-
<ProductVersion>1.4.0.0</ProductVersion>
9-
<Version>1.4.0.0</Version>
8+
<ProductVersion>1.4.1.0</ProductVersion>
9+
<Version>1.4.1.0</Version>
1010
<Authors>Ahmed Yasin Koculu</Authors>
1111
<AssemblyTitle>Topaz</AssemblyTitle>
1212
<Description>Multithreaded Javascript Engine for .NET</Description>

src/Topaz/Topaz.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Deterministic>true</Deterministic>
55
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
66
<NeutralLanguage>en-US</NeutralLanguage>
7-
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks>
7+
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0</TargetFrameworks>
88
<RepositoryUrl>https://github.com/koculu/topaz</RepositoryUrl>
99
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1010
<PackageReadmeFile>README.md</PackageReadmeFile>
@@ -43,7 +43,7 @@
4343
</ItemGroup>
4444

4545
<ItemGroup>
46-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
46+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
4747
<PrivateAssets>all</PrivateAssets>
4848
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4949
</PackageReference>

0 commit comments

Comments
 (0)