Skip to content

Commit bfc40d4

Browse files
committed
Added CI GitHub workflow
1 parent 395dd18 commit bfc40d4

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "**" ] # skip tags by default
6+
pull_request:
7+
branches: [ "**" ] # skip PR builds if needed
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [windows-2022, ubuntu-20.04, macos-14]
17+
target:
18+
- TestCore
19+
- Test
20+
scriptArgs:
21+
- '--netcore=net8.0 --netcoreVersion=net8.0'
22+
- ''
23+
exclude:
24+
- os: windows-2022
25+
target: Test
26+
scriptArgs: '--netcore=net8.0 --netcoreVersion=net8.0'
27+
- os: ubuntu-20.04
28+
target: Test
29+
scriptArgs: '--netcore=net8.0 --netcoreVersion=net8.0'
30+
- os: macos-14
31+
target: Test
32+
scriptArgs: '--netcore=net8.0 --netcoreVersion=net8.0'
33+
- os: macos-14
34+
target: Test
35+
scriptArgs: ''
36+
- os: ubuntu-20.04
37+
target: Test
38+
scriptArgs: ''
39+
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v4
43+
44+
- name: Setup .NET
45+
uses: actions/setup-dotnet@v4
46+
with:
47+
dotnet-version: 8.0.x
48+
49+
- name: Restore Cake tools
50+
run: dotnet tool restore
51+
52+
- name: Run Cake
53+
run: |
54+
dotnet cake --target=${{ matrix.target }} ${{ matrix.scriptArgs }}

0 commit comments

Comments
 (0)