37 lines
No EOL
822 B
YAML
37 lines
No EOL
822 B
YAML
name: Voice Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
publish:
|
|
|
|
runs-on: dotnet
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Dotnet Restore
|
|
run: dotnet restore
|
|
|
|
- name: Build Native
|
|
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: LarpixVoice
|
|
path: ./publish/LarpixVoice |