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 submodules: recursive
ref: ${{ github.ref }} 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 - name: Install dependencies
run: src/ci_scripts/ubuntu-deps.sh run: src/ci_scripts/ubuntu-deps.sh
@ -64,9 +70,14 @@ jobs:
- name: Extract artifact file - name: Extract artifact file
run: tar -xzf artifacts.tar run: tar -xzf artifacts.tar
- name: Downgrade python to 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies - name: Install dependencies
run: src/ci_scripts/ubuntu-deps.sh run: src/ci_scripts/ubuntu-deps.sh
- name: Setup kmip and vault - name: Setup kmip and vault
run: src/ci_scripts/setup-keyring-servers.sh run: src/ci_scripts/setup-keyring-servers.sh
@ -109,6 +120,12 @@ jobs:
- name: Extract artifact file - name: Extract artifact file
run: tar -xzf artifacts.tar 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 - name: Install dependencies
run: src/ci_scripts/ubuntu-deps.sh run: src/ci_scripts/ubuntu-deps.sh

@ -11,13 +11,19 @@ env:
jobs: jobs:
run: run:
name: Run name: Run
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- name: Clone repository - name: Clone repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: recursive 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 - name: Install dependencies
run: ci_scripts/ubuntu-deps.sh run: ci_scripts/ubuntu-deps.sh

@ -11,13 +11,19 @@ env:
jobs: jobs:
collect: collect:
name: Collect and upload name: Collect and upload
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- name: Clone repository - name: Clone repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: recursive 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 - name: Install dependencies
run: ci_scripts/ubuntu-deps.sh run: ci_scripts/ubuntu-deps.sh

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

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

Loading…
Cancel
Save