Update Builds #367
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 | ||
| on: | ||
| push: | ||
| branches: [master, release-*] | ||
| tags: | ||
| - '[0-9]+.[0-9]+.[0-9]+' | ||
| - '[0-9]+.[0-9]+.[0-9]+-*' | ||
| pull_request: | ||
| workflow_dispatch: | ||
| env: | ||
| DOTNET_NOLOGO: true | ||
| jobs: | ||
| build: | ||
| name: Build | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/[email protected] | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Install .NET SDK | ||
| uses: actions/[email protected] | ||
| with: | ||
| dotnet-version: 7.0.x | ||
| - name: Build | ||
| run: dotnet build LibGit2Sharp.sln --configuration Release | ||
| - name: Upload packages | ||
| <<<<<<< HEAD | ||
| uses: actions/[email protected] | ||
| ======= | ||
| uses: actions/[email protected] | ||
| >>>>>>> ced162ae (Update Builds) | ||
| with: | ||
| name: NuGet packages | ||
| path: bin/Packages/ | ||
| retention-days: 7 | ||
| test: | ||
| name: Test / ${{ matrix.os }} / ${{ matrix.arch }} / ${{ matrix.tfm }} | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| arch: [ amd64 ] | ||
| <<<<<<< HEAD | ||
| os: [ windows-2019, macos-11 ] | ||
| tfm: [ net472, net6.0, net7.0 ] | ||
| exclude: | ||
| - os: macos-11 | ||
| ======= | ||
| os: [windows-2019, macos-latest] | ||
| tfm: [ net472, net6.0 ] | ||
| exclude: | ||
| - os: macos-latest | ||
| >>>>>>> ced162ae (Update Builds) | ||
| tfm: net472 | ||
| fail-fast: false | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/[email protected] | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Install .NET SDK | ||
| uses: actions/[email protected] | ||
| with: | ||
| <<<<<<< HEAD | ||
| dotnet-version: | | ||
| 7.0.x | ||
| 6.0.x | ||
| ======= | ||
| dotnet-version: 6.0.x | ||
| >>>>>>> ced162ae (Update Builds) | ||
| - name: Run ${{ matrix.tfm }} tests | ||
| run: dotnet test LibGit2Sharp.sln --configuration Release --framework ${{ matrix.tfm }} --logger "GitHubActions" /p:ExtraDefine=LEAKS_IDENTIFYING | ||
| test-linux: | ||
| name: Test / ${{ matrix.distro }} / ${{ matrix.arch }} / ${{ matrix.tfm }} | ||
| runs-on: ubuntu-22.04 | ||
| strategy: | ||
| matrix: | ||
| arch: [ amd64 ] | ||
| # arch: [ amd64, arm64 ] | ||
| <<<<<<< HEAD | ||
| distro: [ alpine.3.13, alpine.3.14, alpine.3.15, alpine.3.16, alpine.3.17, centos.7, centos.stream.8, debian.10, debian.11, fedora.36, ubuntu.18.04, ubuntu.20.04, ubuntu.22.04 ] | ||
| sdk: [ '6.0', '7.0' ] | ||
| ======= | ||
| distro: [ alpine.3.12, alpine.3.13, alpine.3.14, centos.7, centos.8, debian.9, debian.10, debian.11, fedora.33, ubuntu.18.04, ubuntu.20.04 ] | ||
| sdk: [ '6.0' ] | ||
| >>>>>>> ced162ae (Update Builds) | ||
| exclude: | ||
| - distro: alpine.3.13 | ||
| sdk: '7.0' | ||
| - distro: alpine.3.14 | ||
| sdk: '7.0' | ||
| include: | ||
| - sdk: '6.0' | ||
| tfm: net6.0 | ||
| <<<<<<< HEAD | ||
| - sdk: '7.0' | ||
| tfm: net7.0 | ||
| ======= | ||
| >>>>>>> ced162ae (Update Builds) | ||
| fail-fast: false | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/[email protected] | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Setup QEMU | ||
| if: matrix.arch == 'arm64' | ||
| run: docker run --rm --privileged multiarch/qemu-user-static:register --reset | ||
| - name: Run ${{ matrix.tfm }} tests | ||
| run: | | ||
| git_command="git config --global --add safe.directory /app" | ||
| test_command="dotnet test LibGit2Sharp.sln --configuration Release -p:TargetFrameworks=${{ matrix.tfm }} --logger "GitHubActions" -p:ExtraDefine=LEAKS_IDENTIFYING" | ||
| <<<<<<< HEAD | ||
| docker run -t --rm --platform linux/${{ matrix.arch }} -v "$PWD:/app" gittools/build-images:${{ matrix.distro }}-sdk-${{ matrix.sdk }} sh -c "$git_command && $test_command" | ||
| ======= | ||
| docker run -t --rm --platform linux/${{ matrix.arch }} -v "$PWD:/app" gittools/build-images:${{ matrix.distro }}-sdk-${{ matrix.sdk }} sh -c "$test_command" | ||
| >>>>>>> ced162ae (Update Builds) | ||