Skip to content

Commit 27c3a28

Browse files
committed
Add initial CI
Currently the tests can only run on macOS
1 parent cd79680 commit 27c3a28

File tree

3 files changed

+87
-0
lines changed

3 files changed

+87
-0
lines changed

.github/workflows/build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ main, master, dev/** ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' }}
12+
13+
jobs:
14+
build:
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os: [macos-latest]
21+
configuration: [Release]
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
27+
- name: Setup .NET
28+
uses: actions/setup-dotnet@v4
29+
with:
30+
dotnet-version: '6.x'
31+
32+
- name: Install Mono
33+
run: |
34+
brew install --cask mono-mdk
35+
36+
- name: Build and pack
37+
run: make prepare build nuget CONFIGURATION=${{ matrix.configuration }}
38+
39+
- name: Upload build artifacts
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: build-artifacts-${{ matrix.os }}-${{ matrix.configuration }}
43+
path: |
44+
bin/Nuget/
45+
retention-days: 7

.github/workflows/test.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main, master, dev/** ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' }}
12+
13+
jobs:
14+
test:
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os: [macos-latest]
21+
configuration: [Release]
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
27+
- name: Setup .NET
28+
uses: actions/setup-dotnet@v4
29+
with:
30+
dotnet-version: '6.x'
31+
32+
- name: Install Mono
33+
run: |
34+
brew install --cask mono-mdk
35+
36+
- name: Run tests
37+
run: make prepare all check CONFIGURATION=${{ matrix.configuration }}

global.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"sdk": {
3+
"version": "6.0.428"
4+
}
5+
}

0 commit comments

Comments
 (0)