cleanup the github actions a bit

This commit is contained in:
random() 2024-05-28 21:42:28 -06:00 committed by GitHub
parent 154f5e0149
commit 18012c0948
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,7 +33,7 @@ jobs:
run: | run: |
dotnet restore LibHISP dotnet restore LibHISP
dotnet restore HISPd dotnet restore HISPd
# nativeaot linux x54 # linux x64
- name: Build linux-x64 - name: Build linux-x64
continue-on-error: false continue-on-error: false
run: | run: |
@ -44,27 +44,14 @@ jobs:
dotnet publish -p:PublishProfile=Linux64.pubxml dotnet publish -p:PublishProfile=Linux64.pubxml
cd .. cd ..
# Currently broken ... # linux arm
# dotnet add HISPd package Microsoft.DotNet.ILCompiler --prerelease
# cd HISPd
# dotnet publish -r linux-x64 -c Linux /p:Platform=x64 --self-contained
# cd ..
# mkdir -p HISPd/bin/x64/Linux/net8.0/linux-x64/native/gamedata
# cp -r HISPd/bin/x64/Linux/net8.0/linux-x64/gamedata/* HISPd/bin/x64/Linux/net8.0/linux-x64/native/gamedata
# cp HISPd/bin/x64/Linux/net8.0/linux-x64/HI1.MAP HISPd/bin/x64/Linux/net8.0/linux-x64/native/HI1.MAP
# cp HISPd/bin/x64/Linux/net8.0/linux-x64/publish/libe_sqlite3.so HISPd/bin/x64/Linux/net8.0/linux-x64/native/libe_sqlite3.so
# rm -f HISPd/bin/x64/Linux/net8.0/linux-x64/native/HISPd.dbg
# dotnet remove HISPd package Microsoft.DotNet.ILCompiler
- name: Build linux-arm - name: Build linux-arm
continue-on-error: false continue-on-error: false
run: | run: |
cd HISPd cd HISPd
dotnet publish -p:PublishProfile=LinuxARM.pubxml dotnet publish -p:PublishProfile=LinuxARM.pubxml
cd .. cd ..
# nativeaot linux arm64 # linux arm64
- name: Build linux-arm64 - name: Build linux-arm64
continue-on-error: false continue-on-error: false
run: | run: |
@ -72,18 +59,6 @@ jobs:
dotnet publish -p:PublishProfile=LinuxARM64.pubxml dotnet publish -p:PublishProfile=LinuxARM64.pubxml
cd .. cd ..
# dotnet add HISPd package Microsoft.DotNet.ILCompiler --prerelease
# dotnet add HISPd package runtime.linux-x64.Microsoft.DotNet.ILCompiler --prerelease
# cd HISPd
# dotnet publish -r linux-arm64 -c Linux /p:Platform=ARM64 --self-contained
# cd ..
# mkdir -p HISPd/bin/ARM64/Linux/net8.0/linux-arm64/native/gamedata
# cp -r HISPd/bin/ARM64/Linux/net8.0/linux-arm64/gamedata/* HISPd/bin/ARM64/Linux/net8.0/linux-arm64/native/gamedata
# cp HISPd/bin/ARM64/Linux/net8.0/linux-arm64/HI1.MAP HISPd/bin/ARM64/Linux/net8.0/linux-arm64/native/HI1.MAP
# cp HISPd/bin/ARM64/Linux/net8.0/linux-arm64/publish/libe_sqlite3.so HISPd/bin/ARM64/Linux/net8.0/linux-arm64/native/libe_sqlite3.so
# rm -f HISPd/bin/ARM64/Linux/net8.0/linux-arm64/native/HISPd.dbg
# dotnet remove HISPd package Microsoft.DotNet.ILCompiler
# dotnet remove HISPd package runtime.linux-x64.Microsoft.DotNet.ILCompiler
- name: Build deb package - name: Build deb package
continue-on-error: false continue-on-error: false
@ -120,33 +95,6 @@ jobs:
dpkg-deb --build /tmp/debpkg/Debian64 dpkg-deb --build /tmp/debpkg/Debian64
mv /tmp/debpkg/Debian64.deb debpackage/HISP-Debian-AMD64.deb mv /tmp/debpkg/Debian64.deb debpackage/HISP-Debian-AMD64.deb
#android .. maybe someday
# - 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 android-arm
# uses: actions/upload-artifact@v2
# with:
# name: HISP-AndroidARM
# path: HorseIsleServer/HISPd/bin/arm/Android/net8.0/android-arm/publish/
# - name: Upload android-arm64
# uses: actions/upload-artifact@v2
# with:
# name: HISP-AndroidARM64
# path: HorseIsleServer/HISPd/bin/arm64/Android/net8.0/android-arm64/publish/
# Upload LINUX # Upload LINUX
- name: Upload linux-x64 - name: Upload linux-x64
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
@ -200,7 +148,7 @@ jobs:
- name: Restore dependencies - name: Restore dependencies
run: dotnet restore run: dotnet restore
#nativeaot x64 build # x64 build
- name: Build win-x64 - name: Build win-x64
continue-on-error: false continue-on-error: false
run: | run: |
@ -211,21 +159,6 @@ jobs:
dotnet publish -p:PublishProfile=Win64.pubxml dotnet publish -p:PublishProfile=Win64.pubxml
cd .. cd ..
# dotnet add HISPd package Microsoft.DotNet.ILCompiler --prerelease
# cd HISPd
# dotnet publish -r win-x64 -c Windows /p:Platform=x64 --self-contained
# cd ..
# mkdir "HISPd\bin\x64\Windows\net8.0\win-x64\native\gamedata"
# copy "..\HorseIsleData\gamedata\*" "HISPd\bin\x64\Windows\net8.0\win-x64\native\gamedata"
# copy "..\HorseIsleData\HI1.MAP" "HISPd\bin\x64\Windows\net8.0\win-x64\native\HI1.MAP"
# copy "HISPd\bin\x64\Windows\net8.0\win-x64\publish\e_sqlite3.dll" "HISPd\bin\x64\Windows\net8.0\win-x64\native\e_sqlite3.dll"
# del "HISPd\bin\x64\Windows\net8.0\win-x64\native\HISPd.pdb"
# del "HISPd\bin\x64\Windows\net8.0\win-x64\native\HISPd.lib"
# del "HISPd\bin\x64\Windows\net8.0\win-x64\native\HISPd.exp"
# dotnet remove HISPd package Microsoft.DotNet.ILCompiler
# cd N00BS
# dotnet publish -p:PublishProfile=Win64.pubxml
# cd ..
- name: Build win-x86 - name: Build win-x86
continue-on-error: false continue-on-error: false
run: | run: |
@ -235,34 +168,14 @@ jobs:
cd MPN00BS cd MPN00BS
dotnet publish -p:PublishProfile=Win32.pubxml dotnet publish -p:PublishProfile=Win32.pubxml
cd .. cd ..
# - name: Build win-arm
# continue-on-error: false # arm64 build
# run: |
# cd HISPd
# dotnet publish -p:PublishProfile=WinARM.pubxml
# cd ..
#nativeaot arm64 build
- name: Build win-arm64 - name: Build win-arm64
continue-on-error: false continue-on-error: false
run: | run: |
cd HISPd cd HISPd
dotnet publish -p:PublishProfile=WinARM64.pubxml dotnet publish -p:PublishProfile=WinARM64.pubxml
cd .. cd ..
# dotnet add HISPd package Microsoft.DotNet.ILCompiler --prerelease
# dotnet add HISPd package runtime.win-x64.Microsoft.DotNet.ILCompiler --prerelease
# cd HISPd
# dotnet publish -r win-arm64 -c Windows /p:Platform=ARM64 --self-contained
# cd ..
# mkdir "HISPd\bin\ARM64\Windows\net8.0\win-arm64\native\gamedata"
# copy "..\HorseIsleData\gamedata\*" "HISPd\bin\ARM64\Windows\net8.0\win-arm64\native\gamedata"
# copy "..\HorseIsleData\HI1.MAP" "HISPd\bin\ARM64\Windows\net8.0\win-arm64\native\HI1.MAP"
# copy "HISPd\bin\ARM64\Windows\net8.0\win-arm64\publish\e_sqlite3.dll" "HISPd\bin\ARM64\Windows\net8.0\win-arm64\native\e_sqlite3.dll"
# del "HISPd\bin\ARM64\Windows\net8.0\win-arm64\native\HISPd.pdb"
# del "HISPd\bin\ARM64\Windows\net8.0\win-arm64\native\HISPd.lib"
# del "HISPd\bin\ARM64\Windows\net8.0\win-arm64\native\HISPd.exp"
# dotnet remove HISPd package Microsoft.DotNet.ILCompiler
# dotnet remove HISPd package runtime.win-x64.Microsoft.DotNet.ILCompiler
# Upload WINDOWS # Upload WINDOWS
@ -278,12 +191,6 @@ jobs:
name: HISP-Win32 name: HISP-Win32
path: HorseIsleServer/HISPd/bin/x86/Windows/net8.0/win-x86/publish/ path: HorseIsleServer/HISPd/bin/x86/Windows/net8.0/win-x86/publish/
# - name: Upload win-arm
# uses: actions/upload-artifact@v2
# with:
# name: HISP-WinARM
# path: HorseIsleServer/HISPd/bin/arm/Windows/net8.0/win-arm/publish/
#
- name: Upload win-arm64 - name: Upload win-arm64
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with: