Single file publish support, test project and simple build CI
This also adds remote raspberry pi debugging with default install details. More testing is required as MonoMod may not be working for arm64 still CI might not work yet either
This commit is contained in:
parent
c159f2b388
commit
2c36dacfd2
8 changed files with 241 additions and 29 deletions
39
.github/workflows/ci-otapi3.yml
vendored
Normal file
39
.github/workflows/ci-otapi3.yml
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
name: CI(OTAPI3)
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '6.0.100'
|
||||
|
||||
- name: MonoMod dev build
|
||||
run: dotnet nuget add source https://pkgs.dev.azure.com/MonoMod/MonoMod/_packaging/DevBuilds%40Local/nuget/v3/index.json -n DevBuilds@Local
|
||||
|
||||
- name: Run tests
|
||||
run: dotnet test
|
||||
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
strategy:
|
||||
matrix:
|
||||
arch: ["win-x64", "osx-x64", "linux-x64", "linux-arm64", "linux-arm"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '6.0.100'
|
||||
|
||||
- name: MonoMod dev build
|
||||
run: dotnet nuget add source https://pkgs.dev.azure.com/MonoMod/MonoMod/_packaging/DevBuilds%40Local/nuget/v3/index.json -n DevBuilds@Local
|
||||
|
||||
- name: Produce build
|
||||
run: dotnet publish -r ${{ matrix.mode }} -f net6.0 -c Release -p:PublishSingleFile=true --self-contained true
|
||||
Loading…
Add table
Add a link
Reference in a new issue