From 614023c7fd79b2c42536cc03339c291898beac6b Mon Sep 17 00:00:00 2001 From: olcxja Date: Sat, 2 May 2026 07:21:16 +0200 Subject: [PATCH] Runner test 4 --- .../workflows/{publish.yaml => Server.yaml} | 8 ++++- .forgejo/workflows/Voice.yaml | 35 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) rename .forgejo/workflows/{publish.yaml => Server.yaml} (65%) create mode 100644 .forgejo/workflows/Voice.yaml diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/Server.yaml similarity index 65% rename from .forgejo/workflows/publish.yaml rename to .forgejo/workflows/Server.yaml index 2f8029e..530397c 100644 --- a/.forgejo/workflows/publish.yaml +++ b/.forgejo/workflows/Server.yaml @@ -20,7 +20,13 @@ jobs: - name: Publish Native AOT - run: dotnet publish ./LarpixServer/LarpixServer.csproj -r linux-x64 -c Release -o ./publish + 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 diff --git a/.forgejo/workflows/Voice.yaml b/.forgejo/workflows/Voice.yaml new file mode 100644 index 0000000..6837621 --- /dev/null +++ b/.forgejo/workflows/Voice.yaml @@ -0,0 +1,35 @@ +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 ./LarpixVoice/LarpixVoice.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/ \ No newline at end of file