mirror of
https://github.com/islehorse/HISP.git
synced 2025-06-08 20:11:28 +12:00
Merge branch 'master' of https://github.com/KuromeSan/HISP
This commit is contained in:
commit
e700a0dc99
4 changed files with 75 additions and 36 deletions
66
.github/workflows/linux.yml
vendored
Executable file
66
.github/workflows/linux.yml
vendored
Executable file
|
@ -0,0 +1,66 @@
|
|||
name: linux
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./Horse Isle Server
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 5.0.x
|
||||
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
|
||||
|
||||
- name: Build linux-64
|
||||
continue-on-error: false
|
||||
run: |
|
||||
dotnet publish -p:PublishProfile=Linux64.pubxml
|
||||
cp ../DataCollection/*.json "HorseIsleServer/bin/x64/Linux/net5.0/linux-x64/publish/"
|
||||
cp ../DataCollection/*.MAP "HorseIsleServer/bin/x64/Linux/net5.0/linux-x64/publish/"
|
||||
|
||||
- name: Build linux-arm
|
||||
continue-on-error: false
|
||||
run: |
|
||||
dotnet publish -p:PublishProfile=LinuxARM.pubxml
|
||||
cp ../DataCollection/*.json "HorseIsleServer/bin/ARM/Linux/net5.0/linux-arm/publish/"
|
||||
cp ../DataCollection/*.MAP "HorseIsleServer/bin/ARM/Linux/net5.0/linux-arm/publish/"
|
||||
|
||||
- name: Build linux-arm64
|
||||
continue-on-error: false
|
||||
run: |
|
||||
dotnet publish -p:PublishProfile=LinuxARM64.pubxml
|
||||
cp ../DataCollection/*.json "HorseIsleServer/bin/ARM64/Linux/net5.0/linux-arm64/publish/"
|
||||
cp ../DataCollection/*.MAP "HorseIsleServer/bin/ARM64/Linux/net5.0/linux-arm64/publish/"
|
||||
|
||||
- name: upload linux-64
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: linux-x64
|
||||
path: Horse Isle Server/HorseIsleServer/bin/x64/Linux/net5.0/linux-x64/publish/
|
||||
|
||||
- name: upload linux-arm
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: linux-arm
|
||||
path: Horse Isle Server/HorseIsleServer/bin/ARM/Linux/net5.0/linux-arm/publish/
|
||||
|
||||
- name: upload linux-arm64
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: linux-arm64
|
||||
path: Horse Isle Server/HorseIsleServer/bin/ARM64/Linux/net5.0/linux-arm64/publish/
|
Loading…
Add table
Add a link
Reference in a new issue