mirror of
https://github.com/islehorse/HISP.git
synced 2025-06-08 12:01:28 +12:00
Rename .github/build.yml to .github/workflows/build.yml
This commit is contained in:
parent
eab2edeff6
commit
1c213de842
1 changed files with 0 additions and 0 deletions
119
.github/workflows/build.yml
vendored
Normal file
119
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,119 @@
|
|||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./HorseIsleServer
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: windows-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 win-x64
|
||||
continue-on-error: false
|
||||
run: |
|
||||
dotnet publish -p:PublishProfile=Win64.pubxml
|
||||
|
||||
- name: Build win-x86
|
||||
continue-on-error: false
|
||||
run: |
|
||||
dotnet publish -p:PublishProfile=Win32.pubxml
|
||||
|
||||
- name: Build win-arm
|
||||
continue-on-error: false
|
||||
run: |
|
||||
dotnet publish -p:PublishProfile=WinARM.pubxml
|
||||
|
||||
- name: Build win-arm64
|
||||
continue-on-error: false
|
||||
run: |
|
||||
dotnet publish -p:PublishProfile=WinARM64.pubxml
|
||||
|
||||
- name: Build linux-64
|
||||
continue-on-error: false
|
||||
run: |
|
||||
dotnet publish -p:PublishProfile=Linux64.pubxml
|
||||
|
||||
- name: Build linux-arm
|
||||
continue-on-error: false
|
||||
run: |
|
||||
dotnet publish -p:PublishProfile=LinuxARM.pubxml
|
||||
|
||||
- name: Build linux-arm64
|
||||
continue-on-error: false
|
||||
run: |
|
||||
dotnet publish -p:PublishProfile=LinuxARM64.pubxml
|
||||
|
||||
- name: Upload win-x64
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: HISP-Win64
|
||||
path: HorseIsleServer\HISP\bin\x64\Windows\net6.0\win-x64\publish\
|
||||
|
||||
- name: Upload win-x86
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: HISP-Win32
|
||||
path: HorseIsleServer\HISP\bin\x86\Windows\net6.0\win-x86\publish\
|
||||
|
||||
- name: Upload win-arm
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: HISP-WinARM
|
||||
path: HorseIsleServer\HISP\bin\arm\Windows\net6.0\windows-arm\publish\
|
||||
|
||||
- name: Upload win-arm64
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: HISP-WinARM64
|
||||
path: HorseIsleServer\HISP\bin\arm64\Windows\net6.0\windows-arm64\publish\
|
||||
|
||||
- name: Upload win-x86-noobs
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: HISP-Win32-Noobs
|
||||
path: HorseIsleServer\N00BS\bin\x86\Windows\net6.0\win-x86\publish\
|
||||
|
||||
|
||||
- name: Upload win-x64-noobs
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: HISP-Win64-Noobs
|
||||
path: HorseIsleServer\N00BS\bin\x64\Windows\net6.0\win-x64\publish\
|
||||
|
||||
- name: Upload linux-x64
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: linux-x64
|
||||
path: HorseIsleServer/HISP/bin/x64/Linux/net6.0/linux-x64/publish/
|
||||
|
||||
- name: Upload linux-arm
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: linux-arm
|
||||
path: HorseIsleServer/HISP/bin/ARM/Linux/net6.0/linux-arm/publish/
|
||||
|
||||
- name: Upload linux-arm64
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: linux-arm64
|
||||
path: HorseIsleServer/HISP/bin/ARM64/Linux/net6.0/linux-arm64/publish/
|
Loading…
Add table
Add a link
Reference in a new issue