Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build

on:
push:
branches: [ main, master, dev/** ]
pull_request:
branches: [ main, master ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' }}

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
configuration: [Release, Debug]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x'

- name: Build and pack
run: make prepare build nuget CONFIGURATION=${{ matrix.configuration }}

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-${{ matrix.os }}-${{ matrix.configuration }}
path: |
bin/Nuget/
retention-days: 7
54 changes: 54 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Tests

on:
push:
branches: [ main, master, dev/** ]
pull_request:
branches: [ main, master ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' }}

jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]
configuration: [Release]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x'

- name: Install Mono - Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt install ca-certificates gnupg
sudo gpg --homedir /tmp --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo chmod +r /usr/share/keyrings/mono-official-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install mono-complete mono-vbnc

- name: Install Mono - macOS
if: matrix.os == 'macos-latest'
run: |
brew install --cask mono-mdk

- name: Install Mono - Windows
if: matrix.os == 'windows-latest'
run: |
winget install Mono.Mono --accept-source-agreements --accept-package-agreements
echo "PATH=$env:PATH;C:\Program Files\Mono\bin" >> $env:GITHUB_ENV

- name: Run tests
run: make prepare all check CONFIGURATION=${{ matrix.configuration }}
17 changes: 1 addition & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
.vscode
/Test/en.*/
/Test/html.*/
/Test/DocTest.*
/.v2.txt
/.v0.txt
packages
NUnit.*
TestResult.xml
Expand All @@ -17,14 +12,4 @@ obj
*.pdb
*.psess
*.vspx
mdoc/Test/actual_statistics.txt
mdoc/Test/test-overwrite-attribute/SomeClass.xml
mdoc/Test/test-overwrite-attribute/SomeClass.dll
mdoc/Test/test-generic-ignored-namespace/ReadOnlySpan.dll
mdoc/Test/test-nuget-information/input_data/
/Debug/UwpTestWinRtComponentCpp
Debug
/mdoc/mdoc.Test/UwpTestWinRtComponentCpp/x64/Release
/mdoc.Test.Cplusplus/x64/Release
/x64/Release/UwpTestWinRtComponentCpp
/mdoc/Properties/launchSettings.json
test.txt
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ clean:
check: build check-monodoc check-mdoc

check-mdoc:
cd mdoc; $(MAKE) check -B
$(MAKE) check -B -C mdoc

nuget:
nuget pack mdoc/mdoc.nuspec -outputdirectory bin/Nuget

check-monodoc:
cd monodoc; $(MAKE) check -B
$(MAKE) check -B -C monodoc

zip:
rm -f $(BIN)/mdoc*.zip
Expand Down
6 changes: 3 additions & 3 deletions apidoctools.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mdoc", "mdoc\mdoc.csproj",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "monodoc", "monodoc\monodoc.csproj", "{6E644802-B579-4037-9809-9CF4C7172C9D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Monodoc.Test", "monodoc\Test\Monodoc.Test.csproj", "{1EE70E2C-A289-4C36-AD0A-3D0C6CE56615}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Monodoc.Test", "tests\monodoc\Test\Monodoc.Test.csproj", "{1EE70E2C-A289-4C36-AD0A-3D0C6CE56615}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mdoc.Test", "mdoc\mdoc.Test\mdoc.Test.csproj", "{5ADDEFB6-930C-46BC-8B2B-FDE5C7E3B5AD}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mdoc.Test", "tests\mdoc\mdoc.Test\mdoc.Test.csproj", "{5ADDEFB6-930C-46BC-8B2B-FDE5C7E3B5AD}"
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "mdoc.Test.FSharp", "mdoc\mdoc.Test\mdoc.Test.FSharp\mdoc.Test.FSharp.fsproj", "{979F9F80-12FE-4236-9E93-6D554AB13701}"
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "mdoc.Test.FSharp", "tests\mdoc\mdoc.Test.FSharp\mdoc.Test.FSharp.fsproj", "{979F9F80-12FE-4236-9E93-6D554AB13701}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Binary file added external/Test/AttachedEventsAndProperties.dll
Binary file not shown.
Binary file added external/Test/DocTest-VB-Eii.dll
Binary file not shown.
Binary file added external/Test/TestInterfaceImplementation.dll
Binary file not shown.
Binary file modified external/Test/mdoc.Test.Cplusplus.dll
Binary file not shown.
Binary file modified external/Test/mdoc.Test.FSharp.dll
Binary file not shown.
5 changes: 5 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "6.0.428"
}
}
13 changes: 2 additions & 11 deletions mdoc/.gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
/Test/en.*/
/Test/en.actual
/Test/html.*/
/Test/DocTest.*
/Test/*.dll*
/Test/FrameworkTestData*
/Test/fx-import
Test/DocTest-DropNS-classic.xml

/.v2.txt
/.v0.txt
/Test/test-nuget-information
/Test/test-type-projection
/.v0.txt
Loading