LarpixServer/.forgejo/workflows/Server.yaml
olcxja c515d33f90
All checks were successful
Server AOT Publish / publish (push) Successful in 25s
Runner test 5
2026-05-02 07:23:26 +02:00

37 lines
No EOL
839 B
YAML

name: Server AOT Publish
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
publish:
runs-on: dotnet
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Restore dependencies
run: dotnet restore
- name: Publish Native AOT
run: |
dotnet publish ./LarpixServer/LarpixServer.csproj \
-c Release \
-r linux-x64 \
--self-contained true \
-p:PublishSingleFile=true \
-p:PublishTrimmed=true \
-p:IncludeNativeLibrariesForSelfExtract=true \
-p:IncludeAllContentForSelfExtract=true \
-o ./publish
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: native-binary
path: ./publish/