adding dotnet building to ci, wildcard dotnet dll copying

This commit is contained in:
Andy Pack 2025-02-17 22:15:08 +00:00
parent a647271273
commit 30803bbee7
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7
3 changed files with 74 additions and 2 deletions
.gitea/workflows
.github/workflows
FinLib.NET/FinLib

@ -56,6 +56,43 @@ jobs:
working-directory: ./pyfinlib
run: maturin build
buildNET:
name: Build .NET
runs-on: ubuntu-latest
needs: [ build ] # for ignoring bad builds
steps:
- name: Checkout
uses: actions/checkout@v4
with:
github-server-url: https://gitea.sheep-ghoul.ts.net
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Cargo Build
uses: actions-rs/cargo@v1
with:
command: build
- name: Setup .NET Core SDK 9.0.x
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: 9.0.x
- name: Install Dependencies
working-directory: ./FinLib.NET
run: dotnet restore
- name: Build
working-directory: ./FinLib.NET
run: dotnet build --configuration Debug --no-restore
- name: Test
working-directory: ./FinLib.NET
run: dotnet test --no-restore
buildWASM:
name: Build WASM
runs-on: ubuntu-latest

@ -64,6 +64,41 @@ jobs:
working-directory: ./pyfinlib
run: maturin build
buildNET:
name: Build .NET
runs-on: ubuntu-latest
needs: [ build ] # for ignoring bad builds
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Cargo Build
uses: actions-rs/cargo@v1
with:
command: build
- name: Setup .NET Core SDK 9.0.x
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: 9.0.x
- name: Install Dependencies
working-directory: ./FinLib.NET
run: dotnet restore
- name: Build
working-directory: ./FinLib.NET
run: dotnet build --configuration Debug --no-restore
- name: Test
working-directory: ./FinLib.NET
run: dotnet test --no-restore
buildWASM:
name: Build WASM
runs-on: ubuntu-latest

@ -13,13 +13,13 @@
</PropertyGroup>
<ItemGroup Condition=" '$(Configuration)' == 'Debug' ">
<Content Include="..\..\target\debug\libfinlib_ffi.dylib">
<Content Include="..\..\target\debug\libfinlib_ffi.*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup Condition=" '$(Configuration)' == 'Release' ">
<Content Include="..\..\target\release\libfinlib_ffi.dylib">
<Content Include="..\..\target\release\libfinlib_ffi.*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>