Skip to content

Commit

Permalink
Separate AOT build
Browse files Browse the repository at this point in the history
  • Loading branch information
ButterscotchV committed Aug 7, 2024
1 parent 6442ebb commit 3e32bee
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: dotnet test --verbosity normal

- name: Publish CLI
run: dotnet publish SlimeVrOta -c Release -r ${{ matrix.os.cs }} -o builds/cli_${{ matrix.os.cs }} -p:PublishAot=true -p:PublishSingleFile=false -p:CSharpier_Bypass=true
run: dotnet publish SlimeVrOta -c Release -r ${{ matrix.os.cs }} -o builds/cli_${{ matrix.os.cs }} -p:CSharpier_Bypass=true

- name: Upload a build artifact (CLI)
uses: actions/upload-artifact@v4
Expand All @@ -56,6 +56,22 @@ jobs:
path: |
builds/cli_${{ matrix.os.cs }}/SlimeVR-OTA.exe
builds/cli_${{ matrix.os.cs }}/SlimeVR-OTA
LICENSE
NOTICE.md
- name: Publish CLI AOT
run: dotnet publish SlimeVrOta -c Release -r ${{ matrix.os.cs }} -o builds/cli_aot_${{ matrix.os.cs }} -p:PublishAot=true -p:PublishSingleFile=false -p:CSharpier_Bypass=true

- name: Upload a build artifact (CLI AOT)
uses: actions/upload-artifact@v4
with:
name: SlimeVR-OTA_AOT_${{ matrix.os.cs }}
# A file, directory or wildcard pattern that describes what to upload
path: |
builds/cli_aot_${{ matrix.os.cs }}/SlimeVR-OTA.exe
builds/cli_aot_${{ matrix.os.cs }}/SlimeVR-OTA
LICENSE
NOTICE.md
- name: Publish GUI
run: dotnet publish SlimeVrOta.Gui -c Release -r ${{ matrix.os.cs }} -o builds/gui_${{ matrix.os.cs }} -p:CSharpier_Bypass=true
Expand All @@ -70,3 +86,5 @@ jobs:
!builds/gui_${{ matrix.os.cs }}/*.pdb
!builds/gui_${{ matrix.os.cs }}/SlimeVR-OTA
!builds/gui_${{ matrix.os.cs }}/SlimeVR-OTA.*
LICENSE
NOTICE.md

0 comments on commit 3e32bee

Please sign in to comment.