File tree Expand file tree Collapse file tree 3 files changed +89
-0
lines changed Expand file tree Collapse file tree 3 files changed +89
-0
lines changed Original file line number Diff line number Diff line change 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, Debug]
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 : Restore dependencies
33+ run : dotnet restore apidoctools.sln
34+
35+ - name : Build
36+ run : dotnet build apidoctools.sln -c ${{ matrix.configuration }} --no-restore
37+
38+ - name : Pack NuGet packages
39+ run : dotnet pack mdoc/mdoc.csproj -o bin/Nuget -c ${{ matrix.configuration }} --no-build
40+
41+ - name : Upload build artifacts
42+ uses : actions/upload-artifact@v4
43+ with :
44+ name : build-artifacts-${{ matrix.os }}-${{ matrix.configuration }}
45+ path : |
46+ bin/Nuget/
47+ retention-days : 7
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 1+ {
2+ "sdk" : {
3+ "version" : " 6.0.428"
4+ }
5+ }
You can’t perform that action at this time.
0 commit comments