Skip to content

Commit f6e3623

Browse files
authored
Publish AOT for .so files
1 parent 2970d70 commit f6e3623

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/CPPBuild.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ jobs:
4949
cd Sources/Wrappers/AngouriMath.CPP.Exporting
5050
mkdir ../AngouriMath.CPP.Importing/out-x64
5151
call "C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
52-
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -r ${{ matrix.flag }} -c release
52+
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -p:PublishAot=true -r ${{ matrix.flag }} -c release
5353
5454
- name: 'Building the library into native for Linux & MacOS'
5555
if: ${{ matrix.os != 'windows-latest' }}
5656
run: |
5757
cd Sources/Wrappers/AngouriMath.CPP.Exporting
5858
mkdir ../AngouriMath.CPP.Importing/out-x64
59-
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -r ${{ matrix.flag }} -c release
59+
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -p:PublishAot=true -r ${{ matrix.flag }} -c release
6060
6161
- name: 'Renaming the library for Linux'
6262
if: ${{ matrix.os == 'ubuntu-latest' }}

.github/workflows/CPPTest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ jobs:
4747
cd Sources/Wrappers/AngouriMath.CPP.Exporting
4848
mkdir ../AngouriMath.CPP.Importing/out-x64
4949
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
50-
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -r ${{ matrix.flag }} -c release
50+
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -p:PublishAot=true -r ${{ matrix.flag }} -c release
5151
5252
- name: 'Building the library into native for Linux & MacOS'
5353
if: ${{ matrix.os != 'windows-latest' }}
5454
run: |
5555
cd Sources/Wrappers/AngouriMath.CPP.Exporting
5656
mkdir ../AngouriMath.CPP.Importing/out-x64
57-
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -r ${{ matrix.flag }} -c release
57+
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -p:PublishAot=true -r ${{ matrix.flag }} -c release
5858
5959
- name: 'Preparing tests'
6060
run: |

0 commit comments

Comments
 (0)