Skip to content

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-cpp committed Oct 27, 2023
1 parent 1e158cf commit d11b80f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
12 changes: 0 additions & 12 deletions .config/dotnet-tools.json

This file was deleted.

6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Restore dotnet tools
run: dotnet tool restore
- name: Run CAKE
run: dotnet cake
run: dotnet run --project ./build/Build.csproj
- name: Package artifacts
uses: actions/upload-artifact@main
with:
Expand Down Expand Up @@ -71,10 +71,8 @@ jobs:
with:
name: SDL-ubuntu-20.04
path: artifacts-linux-x64
- name: Restore dotnet tools
run: dotnet tool restore
- name: Run CAKE
run: dotnet cake --target Package
run: dotnet run --project ./build/Build.csproj -- "--target=Package"
- name: Push packages
run: dotnet nuget push bin/Release/*.nupkg --source https://nuget.pkg.github.com/$GITHUB_REPOSITORY_OWNER/index.json --api-key ${GITHUB_TOKEN}
env:
Expand Down
2 changes: 0 additions & 2 deletions build/PackageTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ namespace BuildScripts;
[TaskName("Package")]
public sealed class PackageTask : FrostingTask<BuildContext>
{
public override bool ShouldRun(BuildContext context) => context.IsRunningOnLinux();

public override void Run(BuildContext context)
{
var sdlMajor = context.FindRegexMatchGroupInFile("sdl/include/SDL_version.h", @"#define SDL_MAJOR_VERSION +(?<ver>\d+)", 1, System.Text.RegularExpressions.RegexOptions.Singleline);
Expand Down

0 comments on commit d11b80f

Please sign in to comment.