forked from payjoin/rust-payjoin
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.16 KB
/
csharp.yml
File metadata and controls
49 lines (41 loc) · 1.16 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
name: Build and Test CSharp
on:
pull_request:
paths:
- payjoin-ffi/**
env:
RUSTUP_TOOLCHAIN: 1.85
jobs:
build-csharp-and-test:
name: "Build and test csharp"
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: payjoin-ffi/csharp
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust 1.85.0
uses: dtolnay/rust-toolchain@1.85.0
- name: Use cache
uses: Swatinem/rust-cache@v2
- name: Install .NET 8 SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
- name: Verify .NET SDK
run: |
dotnet --version
dotnet --list-sdks
- name: Generate bindings and binaries (unix)
if: matrix.os != 'windows-latest'
run: bash ./scripts/generate_bindings.sh
- name: Generate bindings and binaries (windows)
if: matrix.os == 'windows-latest'
shell: pwsh
run: ./scripts/generate_bindings.ps1
- name: Run tests
run: dotnet test --logger "console;verbosity=minimal"