-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (39 loc) · 1.09 KB
/
test-csharp-bindings.yml
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
name: Test C# bindings
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Run compile script
run: ./scripts/compile.sh csharp
shell: bash
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Restore .NET dependencies
run: dotnet restore
working-directory: bindings/csharp/csharp_code
- name: Build .NET project
run: dotnet build --no-restore
working-directory: bindings/csharp/csharp_code
- name: Run .NET tests
run: dotnet test --no-build --verbosity normal
working-directory: bindings/csharp/csharp_code