This commit is contained in:
parent
bd66114442
commit
614023c7fd
2 changed files with 42 additions and 1 deletions
|
|
@ -20,7 +20,13 @@ jobs:
|
||||||
|
|
||||||
- name: Publish Native AOT
|
- 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
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
35
.forgejo/workflows/Voice.yaml
Normal file
35
.forgejo/workflows/Voice.yaml
Normal file
|
|
@ -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/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue