mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-08 06:05:42 +12:00
53 lines
1.4 KiB
YAML
53 lines
1.4 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"
|
|
|
|
- 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"
|
|
|
|
- name: upload win-x64
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: win-x64
|
|
path: HorseIsleServer/bin/x64/Windows/net5.0/win-x64/publish/
|
|
|
|
- name: upload win-x86
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: win-x86
|
|
path: HorseIsleServer/bin/x86/Windows/net5.0/win-x86/publish/
|