2626 uses : actions/checkout@v4.1.2
2727 with :
2828 fetch-depth : 0
29+ - name : Show build info
30+ run : |
31+ Write-Host "Building commit: $(git rev-parse HEAD)"
32+ Write-Host "Short hash: $(git rev-parse --short HEAD)"
33+ Write-Host "Git describe: $(git describe --tags)"
34+ Write-Host "Branch: ${{ github.ref_name }}"
35+ shell : pwsh
2936 - name : Install .NET SDK
3037 uses : actions/setup-dotnet@v4.0.0
3138 with :
@@ -46,77 +53,77 @@ jobs:
4653 - name : Verify trimming compatibility
4754 run : dotnet publish TrimmingTestApp
4855
49- test :
50- name : Test / ${{ matrix.os }} / ${{ matrix.arch }} / ${{ matrix.tfm }}
51- runs-on : ${{ matrix.os }}
52- strategy :
53- matrix :
54- arch : [ x64 ]
55- os : [ windows-2022, macos-14 ]
56- tfm : [ net472, net8.0, net9.0 ]
57- exclude :
58- - os : macos-14
59- tfm : net472
60- include :
61- - arch : arm64
62- os : macos-14
63- tfm : net8.0
64- - arch : arm64
65- os : macos-14
66- tfm : net9.0
67- fail-fast : false
68- steps :
69- - name : Checkout
70- uses : actions/checkout@v4.1.2
71- with :
72- fetch-depth : 0
73- - name : Install .NET SDK
74- uses : actions/setup-dotnet@v4.0.0
75- with :
76- dotnet-version : |
77- 9.0.x
78- 8.0.x
79- - name : Run ${{ matrix.tfm }} tests
80- run : dotnet test LibGit2Sharp.sln --configuration Release --framework ${{ matrix.tfm }} --logger "GitHubActions" /p:ExtraDefine=LEAKS_IDENTIFYING
81- test-linux :
82- name : Test / ${{ matrix.distro }} / ${{ matrix.arch }} / ${{ matrix.tfm }}
83- runs-on : ${{ matrix.runnerImage }}
84- strategy :
85- matrix :
86- arch : [ amd64, arm64 ]
87- distro : [ alpine.3.17, alpine.3.18, alpine.3.19, alpine.3.20, centos.stream.9, debian.12, fedora.40, ubuntu.20.04, ubuntu.22.04, ubuntu.24.04 ]
88- sdk : [ '8.0', '9.0' ]
89- exclude :
90- - distro : alpine.3.17
91- sdk : ' 9.0'
92- - distro : alpine.3.18
93- sdk : ' 9.0'
94- - distro : alpine.3.19
95- sdk : ' 9.0'
96- include :
97- - sdk : ' 8.0'
98- tfm : net8.0
99- - sdk : ' 9.0'
100- tfm : net9.0
101- - arch : amd64
102- runnerImage : ubuntu-22.04
103- - arch : arm64
104- runnerImage : ubuntu-22.04-arm
105- fail-fast : false
106- steps :
107- - name : Checkout
108- uses : actions/checkout@v4.1.2
109- with :
110- fetch-depth : 0
111- - name : Run ${{ matrix.tfm }} tests
112- run : |
113- git_command="git config --global --add safe.directory /app"
114- test_command="dotnet test LibGit2Sharp.sln --configuration Release -p:TargetFrameworks=${{ matrix.tfm }} --logger "GitHubActions" -p:ExtraDefine=LEAKS_IDENTIFYING"
115- docker run -t --rm --platform linux/${{ matrix.arch }} -v "$PWD:/app" -e OPENSSL_ENABLE_SHA1_SIGNATURES=1 gittools/build-images:${{ matrix.distro }}-sdk-${{ matrix.sdk }} sh -c "$git_command && $test_command"
56+ # test:
57+ # name: Test / ${{ matrix.os }} / ${{ matrix.arch }} / ${{ matrix.tfm }}
58+ # runs-on: ${{ matrix.os }}
59+ # strategy:
60+ # matrix:
61+ # arch: [ x64 ]
62+ # os: [ windows-2022, macos-14 ]
63+ # tfm: [ net472, net8.0, net9.0 ]
64+ # exclude:
65+ # - os: macos-14
66+ # tfm: net472
67+ # include:
68+ # - arch: arm64
69+ # os: macos-14
70+ # tfm: net8.0
71+ # - arch: arm64
72+ # os: macos-14
73+ # tfm: net9.0
74+ # fail-fast: false
75+ # steps:
76+ # - name: Checkout
77+ # uses: actions/checkout@v4.1.2
78+ # with:
79+ # fetch-depth: 0
80+ # - name: Install .NET SDK
81+ # uses: actions/setup-dotnet@v4.0.0
82+ # with:
83+ # dotnet-version: |
84+ # 9.0.x
85+ # 8.0.x
86+ # - name: Run ${{ matrix.tfm }} tests
87+ # run: dotnet test LibGit2Sharp.sln --configuration Release --framework ${{ matrix.tfm }} --logger "GitHubActions" /p:ExtraDefine=LEAKS_IDENTIFYING
88+ # test-linux:
89+ # name: Test / ${{ matrix.distro }} / ${{ matrix.arch }} / ${{ matrix.tfm }}
90+ # runs-on: ${{ matrix.runnerImage }}
91+ # strategy:
92+ # matrix:
93+ # arch: [ amd64, arm64 ]
94+ # distro: [ alpine.3.17, alpine.3.18, alpine.3.19, alpine.3.20, centos.stream.9, debian.12, fedora.40, ubuntu.20.04, ubuntu.22.04, ubuntu.24.04 ]
95+ # sdk: [ '8.0', '9.0' ]
96+ # exclude:
97+ # - distro: alpine.3.17
98+ # sdk: '9.0'
99+ # - distro: alpine.3.18
100+ # sdk: '9.0'
101+ # - distro: alpine.3.19
102+ # sdk: '9.0'
103+ # include:
104+ # - sdk: '8.0'
105+ # tfm: net8.0
106+ # - sdk: '9.0'
107+ # tfm: net9.0
108+ # - arch: amd64
109+ # runnerImage: ubuntu-22.04
110+ # - arch: arm64
111+ # runnerImage: ubuntu-22.04-arm
112+ # fail-fast: false
113+ # steps:
114+ # - name: Checkout
115+ # uses: actions/checkout@v4.1.2
116+ # with:
117+ # fetch-depth: 0
118+ # - name: Run ${{ matrix.tfm }} tests
119+ # run: |
120+ # git_command="git config --global --add safe.directory /app"
121+ # test_command="dotnet test LibGit2Sharp.sln --configuration Release -p:TargetFrameworks=${{ matrix.tfm }} --logger "GitHubActions" -p:ExtraDefine=LEAKS_IDENTIFYING"
122+ # docker run -t --rm --platform linux/${{ matrix.arch }} -v "$PWD:/app" -e OPENSSL_ENABLE_SHA1_SIGNATURES=1 gittools/build-images:${{ matrix.distro }}-sdk-${{ matrix.sdk }} sh -c "$git_command && $test_command"
116123
117124 nuget-push :
118125 name : Octopus NuGet Push
119- needs : [build, test, test-linux]
126+ needs : [build] # test, test-linux
120127 if : github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
121128 runs-on : ubuntu-22.04
122129 steps :
0 commit comments