Skip to content

Commit 1a7effa

Browse files
authored
Add C# language bindings for payjoin-ffi (#1318)
2 parents c0ddf7c + b859525 commit 1a7effa

14 files changed

Lines changed: 1002 additions & 31 deletions

File tree

.github/workflows/csharp.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build and Test CSharp
2+
on:
3+
pull_request:
4+
paths:
5+
- payjoin-ffi/**
6+
env:
7+
RUSTUP_TOOLCHAIN: 1.85
8+
9+
jobs:
10+
build-csharp-and-test:
11+
name: "Build and test csharp"
12+
runs-on: ${{ matrix.os }}
13+
defaults:
14+
run:
15+
working-directory: payjoin-ffi/csharp
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest, macos-latest, windows-latest]
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Install Rust 1.85.0
24+
uses: dtolnay/rust-toolchain@1.85.0
25+
26+
- name: Use cache
27+
uses: Swatinem/rust-cache@v2
28+
29+
- name: Install .NET 8 SDK
30+
uses: actions/setup-dotnet@v4
31+
with:
32+
dotnet-version: "8.0.x"
33+
34+
- name: Generate bindings and binaries (unix)
35+
if: matrix.os != 'windows-latest'
36+
run: bash ./scripts/generate_bindings.sh
37+
38+
- name: Generate bindings and binaries (windows)
39+
if: matrix.os == 'windows-latest'
40+
shell: pwsh
41+
run: ./scripts/generate_bindings.ps1
42+
43+
- name: Run tests
44+
run: dotnet test --logger "console;verbosity=minimal"

0 commit comments

Comments
 (0)