Update project infrastructure #85
Workflow file for this run
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
| name: CI build | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| - support/* | |
| workflow_dispatch: | |
| workflow_call: | |
| env: | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true | |
| DOTNET_GENERATE_ASPNET_CERTIFICATE: false | |
| DOTNET_NOLOGO: true | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
| jobs: | |
| build: | |
| name: Build on ${{ matrix.os-name }} | |
| strategy: | |
| matrix: | |
| os: [windows, ubuntu] | |
| include: | |
| - os: windows | |
| os-image: windows-2022 | |
| os-name: Windows | |
| artifact-name: windows-artifacts | |
| - os: ubuntu | |
| os-image: ubuntu-22.04 | |
| os-name: Ubuntu | |
| artifact-name: ubuntu-artifacts | |
| runs-on: ${{ matrix.os-image }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| 6.0 | |
| 3.1 | |
| 2.1 | |
| - name: Run build script | |
| run: ./build.ps1 | |
| shell: pwsh | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: ${{ matrix.artifact-name }} | |
| path: artifacts/**/* | |
| build-docs: | |
| name: Build documentation | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: false | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: '0.9.4' | |
| - name: Build docs | |
| run: ./build.ps1 docs | |
| shell: pwsh | |
| - name: Upload docs | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: documentation | |
| path: artifacts/docs |