From 9dc2902ecab8e3788efc74a9456e73bfbd50d3ba Mon Sep 17 00:00:00 2001 From: Ricardo Robaina Date: Fri, 30 May 2025 20:45:45 -0300 Subject: [PATCH] github: update ubuntu image and package references The image ubuntu-20.04 became deprecated on 2025-04-15. For this reason, CI jobs are failing, see [1]. This commit updates the image to ubuntu-24.04 and the required package references to resolve this issue. [1] https://github.com/linux-audit/audit-testsuite/issues/116 Signed-off-by: Ricardo Robaina --- .github/actions/setup/action.yaml | 25 ++++---------------- .github/workflows/continuous-integration.yml | 4 ++-- 2 files changed, 6 insertions(+), 23 deletions(-) diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml index c1658d6..f2c7db1 100644 --- a/.github/actions/setup/action.yaml +++ b/.github/actions/setup/action.yaml @@ -12,30 +12,13 @@ runs: steps: - run: sudo apt-get update shell: bash - - run: sudo apt-get install -y build-essential gcc-multilib python3-pip + - run: sudo apt-get install -y build-essential gcc-multilib python3-pip file shell: bash - run: sudo apt-get install -y astyle shell: bash - - run: | - # NOTE: liburing not packaged for ubuntu-20.04 - git clone https://github.com/axboe/liburing.git liburing - cd liburing - ./configure - make - sudo make install + - run: sudo apt-get install -y liburing-dev shell: bash - - run: | - # NOTE: the distro package isn't current enough (ubuntu-20.04) - git clone https://github.com/perltidy/perltidy.git perltidy - cd perltidy - perl Makefile.PL - make - sudo make install - echo "/usr/local/bin" >> $GITHUB_PATH + - run: sudo apt-get install -y perltidy shell: bash - - run: | - # NOTE: the distro package isn't current enough (ubuntu-20.04) - sudo python3 -m pip install --upgrade pip - sudo python3 -m pip install yapf - echo "$HOME/.local/bin" >> $GITHUB_PATH + - run: sudo apt-get install -y python3-yapf shell: bash diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index d8b6621..2089a6a 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -11,7 +11,7 @@ on: ["push", "pull_request"] jobs: syntax: name: Check Syntax - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout from GitHub uses: actions/checkout@v2 @@ -21,7 +21,7 @@ jobs: run: ./tools/check-syntax -f && git diff --exit-code build: name: Build Tests - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout from GitHub uses: actions/checkout@v2