update(changelog): bump version 2.1.1 #88
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: Compile | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| pull_request: | |
| concurrency: | |
| group: ci-build-release-lock | |
| cancel-in-progress: true | |
| jobs: | |
| prepare: | |
| name: Prepare compile matrix | |
| runs-on: windows-2022 | |
| outputs: | |
| versions: ${{ steps.versions.outputs.versions }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Read versions from Directory.Build.props | |
| id: versions | |
| shell: pwsh | |
| run: | | |
| $propsContent = Get-Content "source/Directory.Build.props" -Raw | |
| $matches = [regex]::Matches($propsContent, 'Release\s+(R\d+)', [System.Text.RegularExpressions.RegexOptions]::IgnoreCase) | |
| $versions = @($matches | ForEach-Object { $_.Groups[1].Value.ToUpperInvariant() } | Sort-Object -Unique) | |
| if ($versions.Count -eq 0) { | |
| throw "No Release Rxx configurations found in source/Directory.Build.props" | |
| } | |
| $versionsJson = $versions | ConvertTo-Json -Compress | |
| "versions=$versionsJson" | Out-File -FilePath $env:GITHUB_OUTPUT -Append -Encoding utf8 | |
| compile: | |
| needs: prepare | |
| name: Compile ${{ matrix.version }} | |
| runs-on: windows-2022 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: ${{ fromJson(needs.prepare.outputs.versions) }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Cache packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .nuke/temp | |
| ~/.nuget/packages | |
| key: ${{ runner.os }}-${{ matrix.version }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }} | |
| - name: Compile solution | |
| run: ./.nuke/build.cmd --configurations "Release ${{ matrix.version }}" |