native build x86

This commit is contained in:
Li 2022-06-21 15:17:50 +12:00 committed by GitHub
parent 2de85889d3
commit f9ef53339d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,8 +46,13 @@ jobs:
- name: Build win-x86
continue-on-error: false
run: |
dotnet publish -p:PublishProfile=Win32.pubxml
dotnet add HISPd package Microsoft.DotNet.ILCompiler --prerelease
dotnet publish -r win-x86 -c Windows --self-contained
mkdir "HISPd\bin\x86\Windows\net7.0\win-x86\native\gamedata"
copy "..\HorseIsleData\gamedata\*" "HISPd\bin\x86\Windows\net7.0\win-x86\native\gamedata"
copy "..\HorseIsleData\HI1.MAP" "HISPd\bin\x86\Windows\net7.0\win-x86\native\HI1.MAP"
copy "HISPd\bin\x86\Windows\net7.0\win-x86\e_sqlite3.dll" "HISPd\bin\x86\Windows\net7.0\win-x86\native\e_sqlite3.dll"
dotnet remove HISPd package Microsoft.DotNet.ILCompiler
- name: Build win-arm
continue-on-error: false
run: |
@ -141,7 +146,7 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: HISP-Win32
path: HorseIsleServer\HISPd\bin\x86\Windows\net7.0\win-x86\publish\
path: HorseIsleServer\HISPd\bin\x86\Windows\net7.0\win-x86\native\
- name: Upload win-arm
uses: actions/upload-artifact@v2