mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 13:45:42 +12:00
fix workflows?
This commit is contained in:
parent
9b5fed4e9d
commit
e575f196db
1 changed files with 33 additions and 30 deletions
63
.github/workflows/build.yml
vendored
63
.github/workflows/build.yml
vendored
|
@ -31,6 +31,39 @@ jobs:
|
||||||
|
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
||||||
|
- name: Build linux-x64
|
||||||
|
continue-on-error: false
|
||||||
|
run: |
|
||||||
|
dotnet publish -p:PublishProfile=Linux64.pubxml
|
||||||
|
|
||||||
|
- name: Build .deb
|
||||||
|
continue-on-error: false
|
||||||
|
shell: wsl-bash -u root {0}
|
||||||
|
run: |
|
||||||
|
sudo umount /mnt/d
|
||||||
|
sudo mount -t drvfs D: /mnt/d -o metadata
|
||||||
|
mkdir Debian64
|
||||||
|
mkdir Debian64/etc
|
||||||
|
mkdir Debian64/usr
|
||||||
|
mkdir Debian64/etc/hisp
|
||||||
|
mkdir Debian64/etc/hisp/gamedata
|
||||||
|
mkdir Debian64/etc/systemd
|
||||||
|
mkdir Debian64/etc/systemd/system
|
||||||
|
mkdir Debian64/usr/bin
|
||||||
|
mkdir Debian64/usr/lib
|
||||||
|
mkdir Debian64/DEBIAN
|
||||||
|
cp -r HISPd/Resources/DEBIAN/* Debian64/DEBIAN
|
||||||
|
chmod 755 -R Debian64/DEBIAN
|
||||||
|
cp HISPd/bin/x64/Linux/net7.0/linux-x64/publish/HISPd Debian64/usr/bin/HISPd
|
||||||
|
chmod +x Debian64/usr/bin/HISPd
|
||||||
|
cp HISPd/bin/x64/Linux/net7.0/linux-x64/publish/libe_sqlite3.so Debian64/usr/lib/libe_sqlite3.so
|
||||||
|
cp HISPd/bin/x64/Linux/net7.0/linux-x64/publish/HI1.MAP Debian64/etc/hisp/HI1.MAP
|
||||||
|
cp LibHISP/Resources/server.properties Debian64/etc/hisp/server.properties
|
||||||
|
cp LibHISP/Resources/default_cross_domain.xml Debian64/etc/hisp/CrossDomainPolicy.xml
|
||||||
|
cp -r ../HorseIsleData/gamedata/* Debian64/etc/hisp/gamedata
|
||||||
|
dpkg-deb --build Debian64
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Build win-x64
|
- name: Build win-x64
|
||||||
|
@ -53,11 +86,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
dotnet publish -p:PublishProfile=WinARM64.pubxml
|
dotnet publish -p:PublishProfile=WinARM64.pubxml
|
||||||
|
|
||||||
- name: Build linux-x64
|
|
||||||
continue-on-error: false
|
|
||||||
run: |
|
|
||||||
dotnet publish -p:PublishProfile=Linux64.pubxml
|
|
||||||
|
|
||||||
- name: Build linux-arm
|
- name: Build linux-arm
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
run: |
|
run: |
|
||||||
|
@ -87,31 +115,6 @@ jobs:
|
||||||
# continue-on-error: false
|
# continue-on-error: false
|
||||||
# run: |
|
# run: |
|
||||||
# dotnet publish -p:PublishProfile=AndroidARM64.pubxm
|
# dotnet publish -p:PublishProfile=AndroidARM64.pubxm
|
||||||
- name: Build .deb
|
|
||||||
continue-on-error: false
|
|
||||||
shell: wsl-bash -u root {0}
|
|
||||||
run: |
|
|
||||||
mkdir Debian64
|
|
||||||
mkdir Debian64/etc
|
|
||||||
mkdir Debian64/usr
|
|
||||||
mkdir Debian64/etc/hisp
|
|
||||||
mkdir Debian64/etc/hisp/gamedata
|
|
||||||
mkdir Debian64/etc/systemd
|
|
||||||
mkdir Debian64/etc/systemd/system
|
|
||||||
mkdir Debian64/usr/bin
|
|
||||||
mkdir Debian64/usr/lib
|
|
||||||
mkdir Debian64/DEBIAN
|
|
||||||
cp -r HISPd/Resources/DEBIAN/* Debian64/DEBIAN
|
|
||||||
chmod 755 -R Debian64/DEBIAN
|
|
||||||
cp HISPd/bin/x64/Linux/net7.0/linux-x64/publish/HISPd Debian64/usr/bin/HISPd
|
|
||||||
chmod +x Debian64/usr/bin/HISPd
|
|
||||||
cp HISPd/bin/x64/Linux/net7.0/linux-x64/publish/libe_sqlite3.so Debian64/usr/lib/libe_sqlite3.so
|
|
||||||
cp HISPd/bin/x64/Linux/net7.0/linux-x64/publish/HI1.MAP Debian64/etc/hisp/HI1.MAP
|
|
||||||
cp LibHISP/Resources/server.properties Debian64/etc/hisp/server.properties
|
|
||||||
cp LibHISP/Resources/default_cross_domain.xml Debian64/etc/hisp/CrossDomainPolicy.xml
|
|
||||||
cp -r HISPd/bin/x64/Linux/net7.0/linux-x64/publish/gamedata/* Debian64/etc/hisp/gamedata
|
|
||||||
dpkg-deb --build Debian64
|
|
||||||
|
|
||||||
|
|
||||||
- name: Upload win-x64
|
- name: Upload win-x64
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
|
Loading…
Add table
Reference in a new issue