Use ubuntu 24.04 in CI

Ubuntu 24.04 image has Python 3.12 by default. PyKMIP server and
CodeCheker tool don't support this version, so we have to downgrade
Python version to 3.11.
pull/238/head
Artem Gavrilov 3 months ago committed by Artem Gavrilov
parent 600172dd3c
commit 402b9be01e
  1. 19
      .github/workflows/build-and-test.yml
  2. 8
      .github/workflows/codechecker.yml
  3. 8
      .github/workflows/coverage.yml
  4. 4
      .github/workflows/matirx.yml
  5. 8
      ci_scripts/ubuntu-deps.sh

@ -31,6 +31,12 @@ jobs:
submodules: recursive
ref: ${{ github.ref }}
# KMIP server don't support Python 3.12 for now: https://github.com/OpenKMIP/PyKMIP/pull/707
- name: Downgrade python to 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: src/ci_scripts/ubuntu-deps.sh
@ -64,9 +70,14 @@ jobs:
- name: Extract artifact file
run: tar -xzf artifacts.tar
- name: Downgrade python to 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: src/ci_scripts/ubuntu-deps.sh
- name: Setup kmip and vault
run: src/ci_scripts/setup-keyring-servers.sh
@ -109,6 +120,12 @@ jobs:
- name: Extract artifact file
run: tar -xzf artifacts.tar
# KMIP server don't support Python 3.12 for now: https://github.com/OpenKMIP/PyKMIP/pull/707
- name: Downgrade python to 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: src/ci_scripts/ubuntu-deps.sh

@ -11,13 +11,19 @@ env:
jobs:
run:
name: Run
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: recursive
# CodeChecker doesn't support python 3.12 for now: https://github.com/Ericsson/codechecker/issues/4350
- name: Downgrade python to 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: ci_scripts/ubuntu-deps.sh

@ -11,13 +11,19 @@ env:
jobs:
collect:
name: Collect and upload
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: recursive
# KMIP server doesn't support Python 3.12 for now: https://github.com/OpenKMIP/PyKMIP/pull/707
- name: Downgrade python to 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: ci_scripts/ubuntu-deps.sh

@ -11,7 +11,7 @@ jobs:
name: Main matrix
strategy:
matrix:
os: [ubuntu-22.04]
os: [ubuntu-24.04]
compiler: [gcc, clang]
build_type: [debugoptimized]
build_script: [make, meson]
@ -28,7 +28,7 @@ jobs:
if: github.event_name != 'pull_request'
strategy:
matrix:
os: [ubuntu-22.04-arm]
os: [ubuntu-24.04-arm]
compiler: [gcc, clang]
build_type: [debugoptimized]
build_script: [make, meson]

@ -29,11 +29,6 @@ DEPS=(
mawk
perl
pkgconf
python3-dev
python3
python3-pip
python3-setuptools
python3-wheel
systemtap-sdt-dev
tcl-dev
uuid-dev
@ -45,7 +40,6 @@ DEPS=(
# Test
libipc-run-perl
# Test pg_tde
python3-pykmip
libhttp-server-simple-perl
lcov
# Run pgperltidy
@ -56,7 +50,7 @@ sudo apt-get update
sudo apt-get install -y ${DEPS[@]}
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
pip3 install meson
pip3 install meson pykmip cryptography setuptools wheel
# Vault
wget -O - https://apt.releases.hashicorp.com/gpg | sudo tee /etc/apt/keyrings/hashicorp-archive-keyring.asc

Loading…
Cancel
Save