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