mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-06 13:15:42 +12:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: macos
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
defaults:
|
|
run:
|
|
working-directory: ./HorseIsleServer
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Git Submodule update
|
|
run: git submodule update --init --recursive
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 5.0.x
|
|
|
|
- name: Restore dependencies
|
|
run: dotnet restore
|
|
|
|
|
|
- name: Build mac-64
|
|
continue-on-error: false
|
|
run: |
|
|
dotnet publish -p:PublishProfile=MacOS.pubxml
|
|
cp ../HorseIsleData/*.json "HorseIsleServer/bin/x64/MacOS/net5.0/osx-x64/publish/"
|
|
cp ../HorseIsleData/*.MAP "HorseIsleServer/bin/x64/MacOS/net5.0/osx-x64/publish/"
|
|
mkdir "HorseIsleServer/bin/x64/MacOS/net5.0/osx-x64/publish/www"
|
|
cp -R ../HorseIsleWeb/* "HorseIsleServer/bin/x64/MacOS/net5.0/osx-x64/publish/www"
|
|
|
|
- name: upload mac-64
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: mac-x64
|
|
path: HorseIsleServer/HorseIsleServer/bin/x64/MacOS/net5.0/osx-x64/publish/
|