]> git.ipfire.org Git - thirdparty/git.git/commitdiff
ci: upgrade `sparse` to supported build agents
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Tue, 8 Apr 2025 20:56:33 +0000 (22:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Apr 2025 15:44:26 +0000 (08:44 -0700)
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>
.github/workflows/main.yml
ci/install-dependencies.sh

index 9959b61ece2bcc63ce70fc7c0b6f2089adba661f..1c8260ecb68b764e665183efc0c107549ac0b428 100644 (file)
@@ -446,20 +446,11 @@ jobs:
     if: needs.ci-config.outputs.enabled == 'yes'
     env:
       jobname: sparse
-    runs-on: ubuntu-20.04
+    runs-on: ubuntu-22.04
     concurrency:
       group: sparse-${{ github.ref }}
       cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
     steps:
-    - name: Download a current `sparse` package
-      # Ubuntu's `sparse` version is too old for us
-      uses: git-for-windows/get-azure-pipelines-artifact@v0
-      with:
-        repository: git/git
-        definitionId: 10
-        artifact: sparse-20.04
-    - name: Install the current `sparse` package
-      run: sudo dpkg -i sparse-20.04/sparse_*.deb
     - uses: actions/checkout@v4
     - name: Install other dependencies
       run: ci/install-dependencies.sh
index 0df74610d063fb8793ea1774f030b84dc1338979..8700c0f2924d7f66da881f232abedd54362787e3 100755 (executable)
@@ -119,7 +119,7 @@ StaticAnalysis)
 sparse)
        sudo apt-get -q update -q
        sudo apt-get -q -y install libssl-dev libcurl4-openssl-dev \
-               libexpat-dev gettext zlib1g-dev
+               libexpat-dev gettext zlib1g-dev sparse
        ;;
 Documentation)
        sudo apt-get -q update