Skip to content

Commit

Permalink
Fix warnings. Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
rstarkov committed Dec 21, 2023
1 parent 676e23b commit a5c9d9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:
run: dotnet test

- name: "dotnet pack: ${{ env.VER_STR }}"
run: dotnet pack Src/RT.Keyboard.csproj --configuration Release -p:InformationalVersion="${{env.VER_STR}}" -p:VersionPrefix=${{env.VER_NUM}} -p:VersionSuffix=${{env.VER_SUF}} -p:FileVersion=${{env.VER_NUM}} -p:AssemblyVersion=${{env.VER_NUM}} -o Publish
run: dotnet pack Src\RT.Keyboard.csproj --configuration Release -p:InformationalVersion="${{env.VER_STR}}" -p:VersionPrefix=${{env.VER_NUM}} -p:VersionSuffix=${{env.VER_SUF}} -p:FileVersion=${{env.VER_NUM}} -p:AssemblyVersion=${{env.VER_NUM}} -o Publish

- name: Push to NuGet
run: dotnet nuget push Publish/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
run: dotnet nuget push Publish\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

- name: Upload artifact
uses: actions/upload-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions Src/WinAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ static class WinAPI
public const int INPUT_KEYBOARD = 1;
public const int INPUT_HARDWARE = 2;

#pragma warning disable 0649 // field is never assigned
public struct KeyboardHookStruct
{
public int vkCode;
Expand Down

0 comments on commit a5c9d9d

Please sign in to comment.