Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/Benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
Benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout
- uses: actions/checkout@v6

- name: Setup .NET 10
uses: actions/setup-dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
include-prerelease: true
dotnet-quality: 'preview'

- name: 'Inter version CPU benchmark'
run: |
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/CPPBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@ jobs:
- os: ubuntu-latest
flag: linux-x64
- os: macos-latest
flag: osx-x64
flag: osx-arm64

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout
- uses: actions/checkout@v6

- name: Setup .NET 10
uses: actions/setup-dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
dotnet-quality: 'preview'

- name: 'Generating exports'
run: |
Expand All @@ -49,14 +50,14 @@ jobs:
cd Sources/Wrappers/AngouriMath.CPP.Exporting
mkdir ../AngouriMath.CPP.Importing/out-x64
call "C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -r ${{ matrix.flag }} -c release
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -p:PublishAot=true -r ${{ matrix.flag }} -c release

- name: 'Building the library into native for Linux & MacOS'
if: ${{ matrix.os != 'windows-latest' }}
run: |
cd Sources/Wrappers/AngouriMath.CPP.Exporting
mkdir ../AngouriMath.CPP.Importing/out-x64
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -r ${{ matrix.flag }} -c release
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -p:PublishAot=true -r ${{ matrix.flag }} -c release

- name: 'Renaming the library for Linux'
if: ${{ matrix.os == 'ubuntu-latest' }}
Expand All @@ -72,7 +73,7 @@ jobs:
install_name_tool -id "@rpath/libAngouriMath.CPP.Exporting.dylib" libAngouriMath.CPP.Exporting.dylib

- name: 'Uploading artifacts'
uses: actions/upload-artifact
uses: actions/upload-artifact@v6
with:
name: AngouriMath.CPP-${{ matrix.os }}-x64
path: ./Sources/Wrappers/AngouriMath.CPP.Importing
Expand Down
20 changes: 9 additions & 11 deletions .github/workflows/CPPTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ jobs:
- os: ubuntu-latest
flag: linux-x64
- os: macos-latest
flag: osx-x64
flag: osx-arm64

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout
- uses: actions/checkout@v6

- name: Setup .NET 10
uses: actions/setup-dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
include-prerelease: true
dotnet-quality: 'preview'

- name: 'Install some libs for Linux'
if: ${{ matrix.os == 'ubuntu-latest' }}
Expand All @@ -47,14 +47,14 @@ jobs:
cd Sources/Wrappers/AngouriMath.CPP.Exporting
mkdir ../AngouriMath.CPP.Importing/out-x64
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -r ${{ matrix.flag }} -c release
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -p:PublishAot=true -r ${{ matrix.flag }} -c release

- name: 'Building the library into native for Linux & MacOS'
if: ${{ matrix.os != 'windows-latest' }}
run: |
cd Sources/Wrappers/AngouriMath.CPP.Exporting
mkdir ../AngouriMath.CPP.Importing/out-x64
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -r ${{ matrix.flag }} -c release
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -p:PublishAot=true -r ${{ matrix.flag }} -c release

- name: 'Preparing tests'
run: |
Expand All @@ -66,7 +66,8 @@ jobs:
if: ${{ matrix.os == 'windows-latest' }}
run: |
cd ${{ env.tests_path }}
copy "..\..\..\Wrappers\AngouriMath.CPP.Importing\out-x64\AngouriMath.CPP.Exporting.dll" "build\Debug\AngouriMath.CPP.Exporting.dll"
copy "..\..\..\Wrappers\AngouriMath.CPP.Importing\out-x64\AngouriMath.CPP.Exporting.dll" "build\Debug\AngouriMath.CPP.Exporting.dll" # needed for run time
copy "..\..\..\Wrappers\AngouriMath.CPP.Importing\out-x64\AngouriMath.CPP.Exporting.lib" "build\Debug\AngouriMath.CPP.Exporting.lib" # needed for link time

- name: 'Copying the library for Linux'
if: ${{ matrix.os == 'ubuntu-latest' }}
Expand All @@ -79,9 +80,6 @@ jobs:
run: |
cd ${{ env.tests_path }}
cp -r "../../../Wrappers/AngouriMath.CPP.Importing/out-x64/AngouriMath.CPP.Exporting.dylib" "build/Debug/libAngouriMath.CPP.Exporting.dylib"
cd build/Debug
path=$(pwd)
install_name_tool -id "$path/libAngouriMath.CPP.Exporting.dylib" libAngouriMath.CPP.Exporting.dylib

- name: 'Building and running tests'
run: |
Expand All @@ -92,7 +90,7 @@ jobs:

- name: 'Upload logs'
if: failure()
uses: actions/upload-artifact
uses: actions/upload-artifact@v6
with:
name: Logs
path: ./Sources/Tests/CPPWrapperUnitTests/tests/build/Testing/Temporary
6 changes: 3 additions & 3 deletions .github/workflows/CSharpBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout
- uses: actions/checkout@v6
with:
submodules: 'recursive'
- name: Setup .NET 10
uses: actions/setup-dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
include-prerelease: true
dotnet-quality: 'preview'

- name: Build AngouriMath
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/CSharpTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout
- uses: actions/checkout@v6
with:
submodules: 'recursive'

- name: Setup .NET 10
uses: actions/setup-dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
include-prerelease: true
dotnet-quality: 'preview'

- name: Build Tests # We need it to be able to retry
run: |
Expand All @@ -51,14 +51,14 @@ jobs:

- name: 'Upload report as artifact'
if: ${{ matrix.os == 'windows-latest' }}
uses: actions/upload-artifact
uses: actions/upload-artifact@v6
with:
name: Report
path: ./Sources/Tests/UnitTests/coverage.opencover.xml
retention-days: 3

- name: 'Send to codecov'
if: ${{ matrix.os == 'windows-latest' }}
uses: codecov/codecov-action
uses: codecov/codecov-action@v5
with:
file: ./Sources/Tests/UnitTests/coverage.opencover.xml
6 changes: 3 additions & 3 deletions .github/workflows/EverythingBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
runs-on: windows-latest # Window application cannot be run on other OS

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
with:
submodules: 'recursive'

- name: Setup .NET 10
uses: actions/setup-dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
include-prerelease: true
dotnet-quality: 'preview'

- name: Build AM
run: dotnet build Sources/AngouriMath/AngouriMath/AngouriMath.csproj
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/FSharpBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout
- uses: actions/checkout@v6
with:
submodules: 'recursive'

- name: Setup .NET 10
uses: actions/setup-dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
include-prerelease: true
dotnet-quality: 'preview'

- name: Build
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/FSharpTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout
- uses: actions/checkout@v6
with:
submodules: 'recursive'

- name: Setup .NET 10
uses: actions/setup-dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
include-prerelease: true
dotnet-quality: 'preview'

- name: Build Tests # We need it to be able to retry
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/IntegrationTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
ConsoleApp:
runs-on: windows-latest
steps:
- uses: actions/checkout
- uses: actions/setup-dotnet
- uses: actions/checkout@v6
- uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
include-prerelease: true
dotnet-quality: 'preview'

- name: 'Pack AngouriMath'
run: |
Expand Down Expand Up @@ -61,11 +61,11 @@ jobs:
ClassLibConsoleApp:
runs-on: windows-latest
steps:
- uses: actions/checkout
- uses: actions/setup-dotnet
- uses: actions/checkout@v6
- uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
include-prerelease: true
dotnet-quality: 'preview'

- name: 'Pack AngouriMath'
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/InteractiveBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
with:
submodules: 'recursive'

- name: Setup .NET 10
uses: actions/setup-dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
include-prerelease: true
dotnet-quality: 'preview'

- name: Build
run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/InteractiveTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout
- uses: actions/checkout@v6
with:
submodules: 'recursive'

- name: Setup .NET 10
uses: actions/setup-dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
dotnet-quality: 'preview'

- name: Build Tests # We need it to be able to retry
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/Nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup .NET 10
uses: actions/setup-dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
include-prerelease: true
dotnet-quality: 'preview'

- uses: actions/checkout
- uses: actions/checkout@v6

- name: 'Pack AngouriMath'
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/TerminalNightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout
- uses: actions/checkout@v6
with:
submodules: 'recursive'

- name: Setup .NET 10
uses: actions/setup-dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
include-prerelease: true
dotnet-quality: 'preview'

- name: 'Build terminal'
run: |
Expand Down
Loading
Loading