-
Notifications
You must be signed in to change notification settings - Fork 98
63 lines (56 loc) · 1.6 KB
/
Copy pathcsharp.yml
File metadata and controls
63 lines (56 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build and Test CSharp
on:
workflow_run:
workflows: ["Flake maintenance"]
types: [requested]
branches:
- "update_flake_lock_action"
pull_request:
paths:
- payjoin-ffi/**
jobs:
build-csharp-and-test-unix:
name: "Build and test csharp"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: "Use cache"
uses: Swatinem/rust-cache@v2
- name: "Install nix"
uses: DeterminateSystems/determinate-nix-action@main
- name: "Use nix cache"
uses: DeterminateSystems/magic-nix-cache-action@main
- name: "Build and test"
run: nix develop .#csharp -c ./payjoin-ffi/csharp/contrib/test.sh
build-csharp-and-test-windows:
name: "Build and test csharp (windows)"
runs-on: windows-latest
env:
RUSTUP_TOOLCHAIN: 1.85
defaults:
run:
working-directory: payjoin-ffi/csharp
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Rust 1.85.0
uses: dtolnay/rust-toolchain@1.85.0
- name: Use cache
uses: Swatinem/rust-cache@v2
- name: Install .NET 10 SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.0.x"
- name: Verify .NET SDK
run: |
dotnet --version
dotnet --list-sdks
- name: Generate bindings and binaries
shell: pwsh
run: ./scripts/generate_bindings.ps1
- name: Run tests
run: dotnet test --logger "console;verbosity=minimal"