Set up v15 integration branch #1121
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ------------------------------------------------------------------------------ | |
| # <auto-generated> | |
| # | |
| # This code was generated. | |
| # | |
| # - To turn off auto-generation set: | |
| # | |
| # [CustomGitHubActions (AutoGenerate = false)] | |
| # | |
| # - To trigger manual generation invoke: | |
| # | |
| # nuke --generate-configuration GitHubActions_pr --host GitHubActions | |
| # | |
| # </auto-generated> | |
| # ------------------------------------------------------------------------------ | |
| name: pr | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| - main | |
| - v15 | |
| paths: | |
| - '**/*.*' | |
| - '!**/*.md' | |
| concurrency: | |
| group: ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| windows-latest: | |
| name: windows-latest | |
| runs-on: windows-latest | |
| steps: | |
| - name: 'Allow long file path' | |
| run: git config --system core.longpaths true | |
| - if: ${{ runner.os == 'Windows' }} | |
| name: 'Use GNU tar' | |
| shell: cmd | |
| run: | | |
| echo "Adding GNU tar to PATH" | |
| echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%" | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 10.0 | |
| - uses: actions/checkout@v6 | |
| - name: 'Clone NJsonSchema (v12) as sibling for project references' | |
| run: git clone --depth 1 --branch v12 https://github.com/RicoSuter/NJsonSchema.git ../NJsonSchema | |
| - name: 'Pre-build NJsonSchema (v12) in Release so project-ref artifacts exist' | |
| run: dotnet build src/NJsonSchema.sln -c Release -v minimal | |
| working-directory: ../NJsonSchema | |
| - name: 'Run: Compile, Test, Pack' | |
| run: ./build.cmd Compile Test Pack | |
| - name: 'Publish: NSwag.zip' | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: NSwag.zip | |
| path: artifacts/NSwag.zip | |
| - name: 'Publish: NSwag.Npm.zip' | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: NSwag.Npm.zip | |
| path: artifacts/NSwag.Npm.zip | |
| - name: 'Publish: NSwagStudio.msi' | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: NSwagStudio.msi | |
| path: artifacts/NSwagStudio.msi | |
| - name: 'Publish: NuGet Packages' | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: NuGet Packages | |
| path: artifacts/*.nupkg | |
| ubuntu-latest: | |
| name: ubuntu-latest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 10.0 | |
| - uses: actions/checkout@v6 | |
| - name: 'Clone NJsonSchema (v12) as sibling for project references' | |
| run: git clone --depth 1 --branch v12 https://github.com/RicoSuter/NJsonSchema.git ../NJsonSchema | |
| - name: 'Pre-build NJsonSchema (v12) in Release so project-ref artifacts exist' | |
| run: dotnet build src/NJsonSchema.sln -c Release -v minimal | |
| working-directory: ../NJsonSchema | |
| - name: 'Run: Compile, Test, Pack' | |
| run: ./build.cmd Compile Test Pack | |
| macos-latest: | |
| name: macos-latest | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 10.0 | |
| - uses: actions/checkout@v6 | |
| - name: 'Clone NJsonSchema (v12) as sibling for project references' | |
| run: git clone --depth 1 --branch v12 https://github.com/RicoSuter/NJsonSchema.git ../NJsonSchema | |
| - name: 'Pre-build NJsonSchema (v12) in Release so project-ref artifacts exist' | |
| run: dotnet build src/NJsonSchema.sln -c Release -v minimal | |
| working-directory: ../NJsonSchema | |
| - name: 'Run: Compile, Test, Pack' | |
| run: ./build.cmd Compile Test Pack |