-
Notifications
You must be signed in to change notification settings - Fork 5
69 lines (56 loc) · 1.61 KB
/
tiledb-csharp.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: CI
on:
push:
branches: [ main, 'release/*' ]
pull_request:
branches: [ main, 'release/*' ]
workflow_dispatch:
workflow_call:
jobs:
Validate-Package:
runs-on: ubuntu-latest
steps:
# Checks out repository
- uses: actions/checkout@v4
- name: Remove existing .NET versions
shell: bash
run: |
rm -rf $DOTNET_ROOT
- name: Set up .NET SDK from global.json
uses: actions/setup-dotnet@v4
- name: Display .NET versions
run: dotnet --info
# Package validation runs as part of packing.
- name: Dotnet pack for TileDB.CSharp
run: |
dotnet pack -c Release sources/TileDB.CSharp
Run-Tests:
strategy:
fail-fast: false
matrix:
# Repeat this test for each os
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
# Checks out repository
- uses: actions/checkout@v4
- name: Remove existing .NET versions
shell: bash
run: |
rm -rf $DOTNET_ROOT
- name: Set up .NET SDK from global.json
uses: actions/setup-dotnet@v4
- name: Display .NET versions
run: dotnet --info
# DotNet build
- name: Dotnet build for TileDB.CSharp
run: |
dotnet build -c Release sources/TileDB.CSharp
# DotNet test
- name: Test TileDB.CSharp
run: |
dotnet test -c Release tests/TileDB.CSharp.Test
- name: Run examples
shell: bash
run: |
find examples/ -name *.csproj | xargs -I{} dotnet run --project {} -f net6.0