mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-06 21:25:42 +12:00
53 lines
1.7 KiB
YAML
53 lines
1.7 KiB
YAML
name: windows
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
defaults:
|
|
run:
|
|
working-directory: ./Horse Isle Server
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: windows-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 win-x64
|
|
continue-on-error: false
|
|
run: |
|
|
dotnet publish -p:PublishProfile=Win64.pubxml
|
|
copy ..\DataCollection\gamedata.json "HorseIsleServer\bin\x64\Windows\net5.0\win-x64\publish\gamedata.json"
|
|
copy ..\DataCollection\HI1.MAP "HorseIsleServer\bin\x64\Windows\net5.0\win-x64\publish\HI1.MAP"
|
|
copy ..\WebInterface "HorseIsleServer\bin\x64\Windows\net5.0\win-x64\publish\www" -Recurse
|
|
- name: Build win-x86
|
|
continue-on-error: false
|
|
run: |
|
|
dotnet publish -p:PublishProfile=Win32.pubxml
|
|
copy ..\DataCollection\gamedata.json "HorseIsleServer\bin\x86\Windows\net5.0\win-x86\publish\gamedata.json"
|
|
copy ..\DataCollection\HI1.MAP "HorseIsleServer\bin\x86\Windows\net5.0\win-x86\publish\HI1.MAP"
|
|
copy ..\WebInterface "HorseIsleServer\bin\x86\Windows\net5.0\win-x86\publish\www" -Recurse
|
|
- name: Upload win-x64
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: win-x64
|
|
path: Horse Isle Server\HorseIsleServer\bin/x64\Windows\net5.0\win-x64\publish\
|
|
|
|
- name: Upload win-x86
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: win-x86
|
|
path: Horse Isle Server\HorseIsleServer\bin\x86\Windows\net5.0\win-x86\publish\
|