Skip to content

Commit

Permalink
Fix parameter being misused
Browse files Browse the repository at this point in the history
  • Loading branch information
Perksey authored Jun 6, 2024
1 parent 0394a77 commit fba20e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sdl2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:

- name: Build SDL2
if: runner.os != 'Linux'
run: ${{ matrix.env.nuke_invoke }} SDL2 ${{ runner.os == 'Windows' && format('{0} {1}', '--native true --android-sdk-override', env.ANDROID_HOME) || '' }}
run: ${{ matrix.env.nuke_invoke }} SDL2 ${{ runner.os == 'Windows' && format('{0} {1}', '--native true --android-home-value', env.ANDROID_HOME) || '' }}
env:
PUSHABLE_GITHUB_TOKEN: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}

4 changes: 1 addition & 3 deletions build/nuke/Native/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
partial class Build {
[Nuke.Common.Parameter("Build native code")] readonly bool Native;

[CanBeNull] string AndroidHomeValue;

[Nuke.Common.Parameter("Android home. Will be determined from dotnet if not provided.")] readonly string AndroidHomeOverride;
[Nuke.Common.Parameter("Android home. Will be determined from dotnet if not provided.")] [CanBeNull] string AndroidHomeValue;

static string JobsArg => string.IsNullOrWhiteSpace(GitHubActions.Instance?.Job)
? $" -j{Jobs}"
Expand Down

0 comments on commit fba20e1

Please sign in to comment.