Skip to content

Commit

Permalink
Merge branch 'hotfix/build-sdl-aar-in-ci' into ci/hotfix/build-sdl-aa…
Browse files Browse the repository at this point in the history
…r-in-ci/sdl2_bins
  • Loading branch information
dotnet-bot committed Jun 6, 2024
2 parents cf809f9 + b8c0276 commit 00488c8
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 12 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 }}

2 changes: 1 addition & 1 deletion .nuke/build.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"type": "boolean",
"description": "If specified, ignores any generated solution present and builds the entire project"
},
"AndroidHomeOverride": {
"AndroidHomeValue": {
"type": "string",
"description": "Android home. Will be determined from dotnet if not provided"
},
Expand Down
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
8 changes: 1 addition & 7 deletions build/nuke/Native/SilkDroid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,9 @@ string AndroidHome
return AndroidHomeValue;
}

if (AndroidHomeOverride is not null)
{
AndroidHomeValue = AndroidHomeOverride;
return AndroidHomeValue;
}

if ((Environment.GetEnvironmentVariable("ANDROID_HOME") ?? Environment.GetEnvironmentVariable("ANDROID_SDK_ROOT")) is {} sdk)
{
AndroidHomeOverride = sdk;
AndroidHomeValue = sdk;
return sdk;
}

Expand Down
Binary file modified src/Native/Silk.NET.SDL.Native/runtimes/ios/native/libSDL2.a
Binary file not shown.
Binary file not shown.
Binary file modified src/Native/Silk.NET.SDL.Native/runtimes/tvos/native/libSDL2.a
Binary file not shown.
Binary file not shown.

0 comments on commit 00488c8

Please sign in to comment.