33 push :
44 branches : [master, release-*]
55 tags :
6- - ' [0-9]+.[0-9]+.[0-9]+'
7- - ' [0-9]+.[0-9]+.[0-9]+-*'
6+ - " [0-9]+.[0-9]+.[0-9]+"
7+ - " [0-9]+.[0-9]+.[0-9]+-*"
88 pull_request :
99 workflow_dispatch :
1010jobs :
@@ -16,13 +16,13 @@ jobs:
1616 strategy :
1717 matrix :
1818 include :
19- - os : windows-2019
19+ - os : windows-2022
2020 name : win-x86
2121 param : -x86
22- - os : windows-2019
22+ - os : windows-2022
2323 name : win-x64
2424 param : -x64
25- - os : windows-2019
25+ - os : windows-2022
2626 name : win-arm64
2727 param : -arm64
2828 - os : ubuntu-24.04
@@ -39,14 +39,14 @@ jobs:
3939 name : linux-musl-arm
4040 - os : ubuntu-24.04
4141 name : linux-musl-arm64
42- - os : macos-13
42+ - os : macos-26-intel
4343 name : osx-x64
44- - os : macos-13
44+ - os : macos-26
4545 name : osx-arm64
4646 fail-fast : false
4747 steps :
4848 - name : Checkout
49- uses : actions/checkout@v4.2 .2
49+ uses : actions/checkout@v6.0 .2
5050 with :
5151 submodules : true
5252 - name : Build Windows
@@ -56,39 +56,53 @@ jobs:
5656 if : runner.os == 'macOS'
5757 run : ./build.libgit2.sh
5858 - name : Setup QEMU
59- if : matrix.name == 'linux-musl-arm' || matrix.name == 'linux-musl-arm64'
60- run : docker run --rm --privileged multiarch/qemu-user-static:register --reset
59+ if : runner.os == 'Linux' && (matrix.name == 'linux-arm' || matrix.name == 'linux-arm64' || matrix.name == 'linux-ppc64le' || matrix.name == 'linux-musl-arm' || matrix.name == 'linux-musl-arm64')
60+ uses : docker/setup-qemu-action@v4
61+ - name : Set up Docker Buildx
62+ if : runner.os == 'Linux'
63+ uses : docker/setup-buildx-action@v4
6164 - name : Build Linux
6265 if : runner.os == 'Linux'
6366 run : ./dockerbuild.sh
6467 - name : Upload artifacts
65- uses : actions/upload-artifact@v4.4.3
68+ uses : actions/upload-artifact@v7.0.0
6669 with :
6770 name : ${{ matrix.name }}
6871 path : nuget.package/runtimes/${{ matrix.name }}
6972 package :
70- name : Create package
71- needs : build
72- runs-on : ubuntu-24.04
73- env :
74- DOTNET_NOLOGO : true
75- steps :
73+ name : Create package
74+ needs : build
75+ runs-on : ubuntu-24.04
76+ env :
77+ DOTNET_NOLOGO : true
78+ steps :
7679 - name : Checkout
77- uses : actions/checkout@v4.2 .2
80+ uses : actions/checkout@v6.0 .2
7881 with :
7982 fetch-depth : 0
8083 - name : Setup .NET SDK
81- uses : actions/setup-dotnet@v4.1 .0
84+ uses : actions/setup-dotnet@v5.2 .0
8285 with :
8386 dotnet-version : 9.0.x
8487 - name : Download artifacts
85- uses : actions/download-artifact@v4.1.8
88+ uses : actions/download-artifact@v8.0.1
8689 with :
8790 path : nuget.package/runtimes/
8891 - name : Create package
8992 run : dotnet pack nuget.package
9093 - name : Upload NuGet package
91- uses : actions/upload-artifact@v4.4.3
94+ uses : actions/upload-artifact@v7.0.0
9295 with :
9396 name : NuGet package
9497 path : ./nuget.package/*.nupkg
98+ ci :
99+ name : ci
100+ needs : [build, package]
101+ runs-on : ubuntu-24.04
102+ steps :
103+ - name : Check results
104+ run : |
105+ if [ "${{ needs.build.result }}" != "success" ] || [ "${{ needs.package.result }}" != "success" ]; then
106+ echo "One or more jobs failed"
107+ exit 1
108+ fi
0 commit comments