diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index de7ae79..6801f9a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,6 +73,17 @@ jobs: run: | dotnet publish -p:PublishProfile=OsxARM64.pubxml + - name: Build android-arm + continue-on-error: false + run: | + dotnet publish -p:PublishProfile=AndroidARM.pubxml + + - name: Build android-arm64 + continue-on-error: false + run: | + dotnet publish -p:PublishProfile=AndroidARM64.pubxml + + - name: Upload win-x64 uses: actions/upload-artifact@v2 with: @@ -138,7 +149,20 @@ jobs: with: name: HISP-MacARM64 path: HorseIsleServer/HISP/bin/arm64/MacOS/net6.0/osx-arm64/publish/ - + + - name: Upload android-arm + uses: actions/upload-artifact@v2 + with: + name: HISP-AndroidARM + path: HorseIsleServer/HISP/bin/arm/Android/net6.0/android-arm/publish/ + + - name: Upload android-arm64 + uses: actions/upload-artifact@v2 + with: + name: HISP-AndroidARM64 + path: HorseIsleServer/HISP/bin/arm64/Android/net6.0/android-arm64/publish/ + + - name: Upload Website (master) uses: actions/upload-artifact@v2 with: diff --git a/HorseIsleServer/HISP/HISP.csproj b/HorseIsleServer/HISP/HISP.csproj index f2e91b8..f8be9f5 100644 --- a/HorseIsleServer/HISP/HISP.csproj +++ b/HorseIsleServer/HISP/HISP.csproj @@ -70,6 +70,23 @@ 1701;1702;2026 + + + android-arm + true + ARM32 + OS_ANDROID;ARCH_ARM + 3 + 1701;1702;2026 + + + android-arm64 + true + ARM64 + OS_ANDROID;ARCH_ARM64 + 3 + 1701;1702;2026 + linux-x64 diff --git a/HorseIsleServer/HISP/Properties/PublishProfiles/AndroidARM.pubxml b/HorseIsleServer/HISP/Properties/PublishProfiles/AndroidARM.pubxml new file mode 100644 index 0000000..6c57f44 --- /dev/null +++ b/HorseIsleServer/HISP/Properties/PublishProfiles/AndroidARM.pubxml @@ -0,0 +1,19 @@ + + + + + Android + ARM + bin\arm\Android\net6.0\android-arm\publish\ + FileSystem + net6.0 + android-arm + True + + True + True + OS_ANDROID;ARCH_ARM + + \ No newline at end of file diff --git a/HorseIsleServer/HISP/Properties/PublishProfiles/AndroidARM64.pubxml b/HorseIsleServer/HISP/Properties/PublishProfiles/AndroidARM64.pubxml new file mode 100644 index 0000000..3612b42 --- /dev/null +++ b/HorseIsleServer/HISP/Properties/PublishProfiles/AndroidARM64.pubxml @@ -0,0 +1,19 @@ + + + + + Android + ARM64 + bin\arm64\Android\net6.0\android-arm64\publish\ + FileSystem + net6.0 + android-arm64 + True + + True + True + OS_ANDROID;ARCH_ARM64 + + \ No newline at end of file diff --git a/HorseIsleServer/LibHISP/LibHISP.csproj b/HorseIsleServer/LibHISP/LibHISP.csproj index 25fd3ce..bf58b09 100644 --- a/HorseIsleServer/LibHISP/LibHISP.csproj +++ b/HorseIsleServer/LibHISP/LibHISP.csproj @@ -4,7 +4,7 @@ HISP 10.0 x64;x86;ARM;ARM64;AnyCPU - Debug;Windows;Linux;MacOS + Debug;Windows;Linux;MacOS;Android @@ -87,6 +87,23 @@ 1701;1702;2026 + + android-arm + true + ARM32 + OS_ANDROID;ARCH_ARM + 3 + 1701;1702;2026 + + + android-arm64 + true + ARM64 + OS_ANDROID;ARCH_ARM64 + 3 + 1701;1702;2026 + + linux-x64 diff --git a/HorseIsleServer/LibHISP/Properties/PublishProfiles/AndroidARM.pubxml b/HorseIsleServer/LibHISP/Properties/PublishProfiles/AndroidARM.pubxml new file mode 100644 index 0000000..7e3b969 --- /dev/null +++ b/HorseIsleServer/LibHISP/Properties/PublishProfiles/AndroidARM.pubxml @@ -0,0 +1,19 @@ + + + + + Android + ARM + bin\arm\Linux\net6.0\android-arm\publish\ + FileSystem + net6.0 + android-arm + True + + True + True + OS_ANDROID;ARCH_ARM + + \ No newline at end of file diff --git a/HorseIsleServer/LibHISP/Properties/PublishProfiles/AndroidARM64.pubxml b/HorseIsleServer/LibHISP/Properties/PublishProfiles/AndroidARM64.pubxml new file mode 100644 index 0000000..9f99d74 --- /dev/null +++ b/HorseIsleServer/LibHISP/Properties/PublishProfiles/AndroidARM64.pubxml @@ -0,0 +1,19 @@ + + + + + Android + ARM64 + bin\arm\Linux\net6.0\android-arm64\publish\ + FileSystem + net6.0 + android-arm64 + True + + True + True + OS_ANDROID;ARCH_ARM64 + + \ No newline at end of file diff --git a/HorseIsleServer/LibHISP/Server/ServerVersion.cs b/HorseIsleServer/LibHISP/Server/ServerVersion.cs index 8d2aafb..1131528 100644 --- a/HorseIsleServer/LibHISP/Server/ServerVersion.cs +++ b/HorseIsleServer/LibHISP/Server/ServerVersion.cs @@ -29,6 +29,8 @@ namespace HISP.Server return "DEBUG"; #elif OS_WINDOWS return "WINDOWS"; +#elif OS_ANDROID + return "ANDROID"; #elif OS_LINUX return "LINUX"; #elif OS_MACOS