-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (38 loc) · 1.13 KB
/
CI.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
name: dotnet package
on: [pull_request, push]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build-windows:
runs-on: windows-latest
strategy:
matrix:
dotnet-version: [ '8.x' ]
target: [ 'win-x64', 'win-arm64' ]
steps:
- uses: actions/checkout@v4
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Build ${{ matrix.target }}
run: dotnet publish -r ${{ matrix.target }}
- name: Run tests
run: dotnet test
build-linux:
runs-on: ubuntu-22.04
strategy:
matrix:
dotnet-version: [ '8.x' ]
target: [ 'linux-x64' ]
steps:
- uses: actions/checkout@v4
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Build ${{ matrix.target }}
run: dotnet publish -r ${{ matrix.target }}
- name: Run tests
run: dotnet test