mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-06 13:15:42 +12:00
59 lines
1.8 KiB
YAML
59 lines
1.8 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: 6.0.x
|
|
include-prerelease: true
|
|
|
|
- name: Restore dependencies
|
|
run: dotnet restore
|
|
|
|
|
|
- name: Build mac-x64
|
|
continue-on-error: false
|
|
run: |
|
|
dotnet publish -p:PublishProfile=Osx64.pubxml
|
|
cp ../HorseIsleData/*.json "HorseIsleServer/bin/x64/MacOS/net6.0/osx-x64/publish/"
|
|
cp ../HorseIsleData/*.MAP "HorseIsleServer/bin/x64/MacOS/net6.0/osx-x64/publish/"
|
|
mkdir "HorseIsleServer/bin/x64/MacOS/net6.0/osx-x64/publish/www"
|
|
cp -R ../HorseIsleWeb/* "HorseIsleServer/bin/x64/MacOS/net6.0/osx-x64/publish/www"
|
|
|
|
- name: Build mac-arm64
|
|
continue-on-error: false
|
|
run: |
|
|
dotnet publish -p:PublishProfile=OsxARM64.pubxml
|
|
cp ../HorseIsleData/*.json "HorseIsleServer/bin/arm64/MacOS/net6.0/osx-arm64/publish/"
|
|
cp ../HorseIsleData/*.MAP "HorseIsleServer/bin/arm64/MacOS/net6.0/osx-arm64/publish/"
|
|
mkdir "HorseIsleServer/bin/arm64/MacOS/net6.0/osx-arm64/publish/www"
|
|
cp -R ../HorseIsleWeb/* "HorseIsleServer/bin/arm64/MacOS/net6.0/osx-arm64/publish/www"
|
|
|
|
- name: upload mac-x64
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: mac-x64
|
|
path: HorseIsleServer/HorseIsleServer/bin/x64/MacOS/net6.0/osx-x64/publish/
|
|
|
|
- name: upload mac-arm64
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: mac-arm64
|
|
path: HorseIsleServer/HorseIsleServer/bin/arm64/MacOS/net6.0/osx-arm64/publish/
|