Skip to content

Commit 3a0ef40

Browse files
committed
misc: try to assign rid for android demo build.
1 parent db28c82 commit 3a0ef40

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
path: ./upload
7272

7373
android:
74-
runs-on: windows-latest
74+
runs-on: ubuntu-latest
7575
steps:
7676
- name: Checkout
7777
uses: actions/checkout@v4.1.1
@@ -83,7 +83,7 @@ jobs:
8383
run: dotnet restore
8484

8585
- name: Publish Android
86-
run: dotnet publish demo/Semi.Avalonia.Demo.Android -c Release -f net8.0-android --no-restore -o ./publish
86+
run: dotnet publish demo/Semi.Avalonia.Demo.Android -c Release -f net8.0-android --no-restore -o ./publish -p:RuntimeIdentifier=android-arm64
8787

8888
- name: Upload a Build Artifact
8989
uses: actions/upload-artifact@v4.3.1

demo/Semi.Avalonia.TreeDataGrid.Demo/Semi.Avalonia.TreeDataGrid.Demo.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
<LangVersion>latest</LangVersion>
88
<ApplicationManifest>app.manifest</ApplicationManifest>
99
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
10+
<Nullable>enable</Nullable>
11+
<AvaloniaVersion>11.2.2</AvaloniaVersion>
12+
<CommunityToolkitVersion>8.3.2</CommunityToolkitVersion>
1013
<!-- Uncomment below to enable Native AOT compilation-->
1114
<!--<PublishAot>true</PublishAot>-->
1215
<!--<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>-->
1316
</PropertyGroup>
1417

15-
<Import Project="../Directory.Build.props" />
16-
1718
<ItemGroup>
1819
<PackageReference Include="Avalonia" Version="$(AvaloniaVersion)" />
1920
<PackageReference Include="Avalonia.Desktop" Version="$(AvaloniaVersion)" />

0 commit comments

Comments
 (0)