ci: upgrade `sparse` to supported build agents
The `sparse` job still uses the `ubuntu-20.04` runner pool, but that pool is about to go away, so let's stop using it. There is no `sparse-22.04` artifact provided by the "Build sparse for Ubuntu" Azure Pipeline, but that is not necessary anyway because Ubuntu 22.04 has the `sparse` package: https://packages.ubuntu.com/jammy/sparse Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Apr 8, 2025 at 22:56 UTC
832d9f6d0b57c353d18cf145835659ab5ac0124c
2 files changed
+2
-11
.github/workflows/main.yml
+1
-10
@@ -446,20 +446,11 @@ jobs:
446
if: needs.ci-config.outputs.enabled == 'yes'
447
env:
448
jobname: sparse
449
- runs-on: ubuntu-20.04
449
+ runs-on: ubuntu-22.04
450
concurrency:
451
group: sparse-${{ github.ref }}
452
cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
453
steps:
454
- - name: Download a current `sparse` package
455
- # Ubuntu's `sparse` version is too old for us
456
- uses: git-for-windows/get-azure-pipelines-artifact@v0
457
- with:
458
- repository: git/git
459
- definitionId: 10
460
- artifact: sparse-20.04
461
- - name: Install the current `sparse` package
462
- run: sudo dpkg -i sparse-20.04/sparse_*.deb
454
- uses: actions/checkout@v4
455
- name: Install other dependencies
456
run: ci/install-dependencies.sh
ci/install-dependencies.sh
+1
-1
@@ -119,7 +119,7 @@ StaticAnalysis)
119
sparse)
120
sudo apt-get -q update -q
121
sudo apt-get -q -y install libssl-dev libcurl4-openssl-dev \
122
- libexpat-dev gettext zlib1g-dev
122
+ libexpat-dev gettext zlib1g-dev sparse
123
;;
124
Documentation)
125
sudo apt-get -q update