@@ -21,18 +21,18 @@ jobs:
2121 - os : ubuntu-latest
2222 flag : linux-x64
2323 - os : macos-latest
24- flag : osx-x64
24+ flag : osx-arm64
2525
2626 runs-on : ${{ matrix.os }}
2727
2828 steps :
29- - uses : actions/checkout
29+ - uses : actions/checkout@v6
3030
3131 - name : Setup .NET 10
32- uses : actions/setup-dotnet
32+ uses : actions/setup-dotnet@v5
3333 with :
3434 dotnet-version : ' 10.x'
35- include-prerelease : true
35+ dotnet-quality : ' preview '
3636
3737 - name : ' Install some libs for Linux'
3838 if : ${{ matrix.os == 'ubuntu-latest' }}
@@ -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 : |
6666 if : ${{ matrix.os == 'windows-latest' }}
6767 run : |
6868 cd ${{ env.tests_path }}
69- copy "..\..\..\Wrappers\AngouriMath.CPP.Importing\out-x64\AngouriMath.CPP.Exporting.dll" "build\Debug\AngouriMath.CPP.Exporting.dll"
69+ copy "..\..\..\Wrappers\AngouriMath.CPP.Importing\out-x64\AngouriMath.CPP.Exporting.dll" "build\Debug\AngouriMath.CPP.Exporting.dll" # needed for run time
70+ copy "..\..\..\Wrappers\AngouriMath.CPP.Importing\out-x64\AngouriMath.CPP.Exporting.lib" "build\Debug\AngouriMath.CPP.Exporting.lib" # needed for link time
7071
7172 - name : ' Copying the library for Linux'
7273 if : ${{ matrix.os == 'ubuntu-latest' }}
7980 run : |
8081 cd ${{ env.tests_path }}
8182 cp -r "../../../Wrappers/AngouriMath.CPP.Importing/out-x64/AngouriMath.CPP.Exporting.dylib" "build/Debug/libAngouriMath.CPP.Exporting.dylib"
82- cd build/Debug
83- path=$(pwd)
84- install_name_tool -id "$path/libAngouriMath.CPP.Exporting.dylib" libAngouriMath.CPP.Exporting.dylib
8583
8684 - name : ' Building and running tests'
8785 run : |
9290
9391 - name : ' Upload logs'
9492 if : failure()
95- uses : actions/upload-artifact
93+ uses : actions/upload-artifact@v6
9694 with :
9795 name : Logs
9896 path : ./Sources/Tests/CPPWrapperUnitTests/tests/build/Testing/Temporary
0 commit comments