Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ jobs:
strategy:
matrix:
arch: [ x64 ]
os: [ windows-2022, macos-13 ]
tfm: [ net472, net6.0, net8.0, net9.0 ]
os: [ windows-2022, macos-latest ]
tfm: [ net472, net8.0, net9.0 ]
exclude:
- os: macos-13
- os: macos-latest
tfm: net472
include:
- arch: arm64
os: macos-14
os: macos-latest
tfm: net8.0
- arch: arm64
os: macos-14
os: macos-latest
tfm: net9.0
fail-fast: false
steps:
Expand All @@ -68,7 +68,7 @@ jobs:
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: ${{ matrix.runnerImage }}
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
strategy:
matrix:
arch: [ amd64, arm64 ]
Expand All @@ -82,16 +82,10 @@ jobs:
- distro: alpine.3.19
sdk: '9.0'
include:
- sdk: '6.0'
tfm: net6.0
- sdk: '8.0'
tfm: net8.0
- sdk: '9.0'
tfm: net9.0
- arch: amd64
runnerImage: ubuntu-22.04
- arch: arm64
runnerImage: ubuntu-22.04-arm
fail-fast: false
steps:
- name: Checkout
Expand All @@ -106,7 +100,7 @@ jobs:

nuget-push:
name: Octopus NuGet Push
needs: [build, test, test-linux]
needs: [build, test, test-linux] #
# && github.ref == 'refs/heads/octopus/master'
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' && github.event_name != 'schedule'
runs-on: ubuntu-22.04
Expand Down
5 changes: 5 additions & 0 deletions LibGit2Sharp/PushOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public sealed class PushOptions
/// </summary>
public PrePushHandler OnNegotiationCompletedBeforePush { get; set; }

/// <summary>
/// Handler for receiving textual progress from the remote.
/// </summary>
public ProgressHandler OnPushRemoteProgress { get; set; }

/// <summary>
/// Get/Set the custom headers.
/// <para>
Expand Down
1 change: 1 addition & 0 deletions LibGit2Sharp/RemoteCallbacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ internal RemoteCallbacks(PushOptions pushOptions)
CertificateCheck = pushOptions.CertificateCheck;
PushStatusError = pushOptions.OnPushStatusError;
PrePushCallback = pushOptions.OnNegotiationCompletedBeforePush;
Progress = pushOptions.OnPushRemoteProgress;
}

internal RemoteCallbacks(FetchOptionsBase fetchOptions)
Expand Down
Loading