Repository navigation
Bump the microsoft-extensions group with 1 update #29
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 | |
| on: | |
| push: | |
| branches: [master, main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| name: Build and test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Set up .NET 10 | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore | |
| run: dotnet restore CSharp_BatchConvertToCompressedFile.sln | |
| - name: Build | |
| run: dotnet build CSharp_BatchConvertToCompressedFile.sln -c Release --no-restore -warnaserror | |
| - name: Test | |
| run: > | |
| dotnet test CSharp_BatchConvertToCompressedFile.sln -c Release --no-build | |
| --collect:"XPlat Code Coverage" | |
| --results-directory TestResults | |
| --logger "trx;LogFileName=test-results.trx" | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-results-${{ matrix.os }} | |
| path: TestResults/ | |
| if-no-files-found: ignore | |
| package-smoke: | |
| name: Publish ${{ matrix.rid }} | |
| needs: build-and-test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| rid: [win-x64, win-arm64, linux-x64, linux-arm64, osx-x64, osx-arm64] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Set up .NET 10 | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Publish | |
| run: > | |
| dotnet publish BatchConvertToCompressedFile/BatchConvertToCompressedFile.csproj | |
| -c Release -r ${{ matrix.rid }} --self-contained false | |
| -p:PublishSingleFile=true | |
| -p:IncludeNativeLibrariesForSelfExtract=true | |
| -p:DebugType=embedded | |
| -o artifacts/${{ matrix.rid }} | |
| - name: Upload publish output | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: publish-${{ matrix.rid }} | |
| path: artifacts/${{ matrix.rid }}/ | |
| if-no-files-found: error |