Skip to content

Commit a2d9727

Browse files
committed
Update workflows and solution file configurations
- Upgrade `actions/checkout` to v4. - Update `dotnet/nbgv` to v0.4.2. - Change `actions/setup-dotnet` to v4 and update .NET version to 9.0.x. - Upgrade `alirezanet/publish-nuget` to v3.1.0. - Update project references in the solution file to include workflow files correctly.
1 parent bf8fdd0 commit a2d9727

File tree

4 files changed

+21
-23
lines changed

4 files changed

+21
-23
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,26 @@ jobs:
2020
runs-on: windows-latest
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0 # Avoid shallow clone so NBGV can do its work.
2626
submodules: 'recursive'
2727
- name: Set version
28-
uses: dotnet/[email protected].0
28+
uses: dotnet/[email protected].2
2929
with:
3030
setAllVars: true
3131
- name: Setup .NET
32-
uses: actions/setup-dotnet@v1
32+
uses: actions/setup-dotnet@v4
3333
with:
34-
dotnet-version: '8.0.x'
35-
include-prerelease: true
34+
dotnet-version: '9.0.x'
3635
- name: Install dependencies
3736
run: dotnet restore
3837
- name: Build
3938
run: dotnet build --configuration Release --no-restore -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
4039
- name: Test
4140
run: dotnet test --configuration Release --no-build --verbosity normal -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
4241
- name: Publish
43-
uses: alirezanet/publish-nuget@v3.0.0
42+
uses: alirezanet/publish-nuget@v3.1.0
4443
with:
4544
PROJECT_FILE_PATH: HIDDevices/HIDDevices.csproj
4645
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

.github/workflows/publishusages.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,26 @@ jobs:
1919
runs-on: windows-latest
2020

2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0 # Avoid shallow clone so NBGV can do its work.
2525
submodules: 'recursive'
2626
- name: Set version
27-
uses: dotnet/[email protected].0
27+
uses: dotnet/[email protected].2
2828
with:
2929
setAllVars: true
3030
- name: Setup .NET
31-
uses: actions/setup-dotnet@v1
31+
uses: actions/setup-dotnet@v4
3232
with:
33-
dotnet-version: '8.0.x'
34-
include-prerelease: true
33+
dotnet-version: '9.0.x'
3534
- name: Install dependencies
3635
run: dotnet restore
3736
- name: Build
3837
run: dotnet build --configuration GenerateFromSource -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
3938
- name: Test
4039
run: dotnet test --configuration GenerateFromSource --no-build --verbosity normal -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
4140
- name: Publish
42-
uses: alirezanet/publish-nuget@v3.0.0
41+
uses: alirezanet/publish-nuget@v3.1.0
4342
with:
4443
PROJECT_FILE_PATH: HIDDevices.Usages/HIDDevices.Usages.csproj
4544
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

.github/workflows/validate.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,18 @@ jobs:
1414
runs-on: windows-latest
1515

1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 0 # Avoid shallow clone so NBGV can do its work.
2020
submodules: 'recursive'
2121
- name: Set version
22-
uses: dotnet/[email protected].0
22+
uses: dotnet/[email protected].2
2323
with:
2424
setAllVars: true
2525
- name: Setup .NET
26-
uses: actions/setup-dotnet@v1
26+
uses: actions/setup-dotnet@v4
2727
with:
28-
dotnet-version: '8.0.x'
29-
include-prerelease: true
28+
dotnet-version: '9.0.x'
3029
- name: Install dependencies
3130
run: dotnet restore
3231
- name: Build

HIDDevices.sln

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1111
ProjectSection(SolutionItems) = preProject
1212
.editorconfig = .editorconfig
1313
DevDecoder Icon.png = DevDecoder Icon.png
14-
LICENSE.txt = LICENSE.txt
1514
HIDUsageTablesPDF.url = HIDUsageTablesPDF.url
15+
LICENSE.txt = LICENSE.txt
1616
NOTICE.txt = NOTICE.txt
1717
.github\workflows\publish.yml = .github\workflows\publish.yml
18-
.github\workflows\validatepullrequest.yml = .github\workflows\validatepullrequest.yml
18+
.github\workflows\publishusages.yml = .github\workflows\publishusages.yml
19+
.github\workflows\validate.yml = .github\workflows\validate.yml
1920
version.json = version.json
2021
EndProjectSection
2122
EndProject
@@ -36,19 +37,19 @@ Global
3637
{5BE3CAC9-DB63-4A23-869E-9A97B8B5E6ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
3738
{5BE3CAC9-DB63-4A23-869E-9A97B8B5E6ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
3839
{5BE3CAC9-DB63-4A23-869E-9A97B8B5E6ED}.GenerateFromCache|Any CPU.ActiveCfg = GenerateFromCache|Any CPU
40+
{5BE3CAC9-DB63-4A23-869E-9A97B8B5E6ED}.GenerateFromCache|Any CPU.Build.0 = GenerateFromCache|Any CPU
3941
{5BE3CAC9-DB63-4A23-869E-9A97B8B5E6ED}.GenerateFromSource|Any CPU.ActiveCfg = GenerateFromSource|Any CPU
42+
{5BE3CAC9-DB63-4A23-869E-9A97B8B5E6ED}.GenerateFromSource|Any CPU.Build.0 = GenerateFromSource|Any CPU
4043
{5BE3CAC9-DB63-4A23-869E-9A97B8B5E6ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
4144
{5BE3CAC9-DB63-4A23-869E-9A97B8B5E6ED}.Release|Any CPU.Build.0 = Release|Any CPU
42-
{5BE3CAC9-DB63-4A23-869E-9A97B8B5E6ED}.GenerateFromCache|Any CPU.Build.0 = GenerateFromCache|Any CPU
43-
{5BE3CAC9-DB63-4A23-869E-9A97B8B5E6ED}.GenerateFromSource|Any CPU.Build.0 = GenerateFromSource|Any CPU
4445
{95729392-466B-4985-8803-96AFA24F580E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4546
{95729392-466B-4985-8803-96AFA24F580E}.Debug|Any CPU.Build.0 = Debug|Any CPU
4647
{95729392-466B-4985-8803-96AFA24F580E}.GenerateFromCache|Any CPU.ActiveCfg = GenerateFromCache|Any CPU
48+
{95729392-466B-4985-8803-96AFA24F580E}.GenerateFromCache|Any CPU.Build.0 = GenerateFromCache|Any CPU
4749
{95729392-466B-4985-8803-96AFA24F580E}.GenerateFromSource|Any CPU.ActiveCfg = GenerateFromSource|Any CPU
50+
{95729392-466B-4985-8803-96AFA24F580E}.GenerateFromSource|Any CPU.Build.0 = GenerateFromSource|Any CPU
4851
{95729392-466B-4985-8803-96AFA24F580E}.Release|Any CPU.ActiveCfg = Release|Any CPU
4952
{95729392-466B-4985-8803-96AFA24F580E}.Release|Any CPU.Build.0 = Release|Any CPU
50-
{95729392-466B-4985-8803-96AFA24F580E}.GenerateFromCache|Any CPU.Build.0 = GenerateFromCache|Any CPU
51-
{95729392-466B-4985-8803-96AFA24F580E}.GenerateFromSource|Any CPU.Build.0 = GenerateFromSource|Any CPU
5253
{0E520169-5E25-43C5-BFD3-53FA4D4FF190}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
5354
{0E520169-5E25-43C5-BFD3-53FA4D4FF190}.Debug|Any CPU.Build.0 = Debug|Any CPU
5455
{0E520169-5E25-43C5-BFD3-53FA4D4FF190}.GenerateFromCache|Any CPU.ActiveCfg = GenerateFromCache|Any CPU

0 commit comments

Comments
 (0)