Skip to content

Use ubuntu 24.04 in CI #402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: TDE_REL_17_STABLE
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/codechecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/psp-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: PSP
strategy:
matrix:
os: ['ubuntu-22.04']
os: [ubuntu-24.04]
compiler: [gcc, clang]
build_type: [debugoptimized]
build_script: [make, meson]
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/psp-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,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

# 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: ci_scripts/ubuntu-deps.sh

Expand Down
8 changes: 1 addition & 7 deletions ci_scripts/ubuntu-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ DEPS=(
mawk
perl
pkgconf
python3-dev
python3
python3-pip
python3-setuptools
python3-wheel
systemtap-sdt-dev
tcl-dev
uuid-dev
Expand All @@ -45,7 +40,6 @@ DEPS=(
# Test
libipc-run-perl
# Test pg_tde
python3-pykmip
libhttp-server-simple-perl
lcov
# Run pgperltidy
Expand All @@ -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
Expand Down
Loading