Skip to content

Commit b3a73ee

Browse files
authored
Update cross-platform-build-verification.yml
Signed-off-by: 1minds3t <1minds3t@proton.me>
1 parent fac1e86 commit b3a73ee

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/cross-platform-build-verification.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,14 @@ jobs:
128128
cd /workspace
129129
apt-get update && apt-get install -y python3 python3-pip python3-venv
130130
131-
# Use --break-system-packages for CI (safe in disposable container)
132-
python3 -m pip install --break-system-packages --upgrade pip build
131+
# Try upgrading pip normally first (for older distros like Ubuntu 20.04),
132+
# then fall back to --break-system-packages (for newer distros like Ubuntu 24.04)
133+
python3 -m pip install --upgrade pip build || python3 -m pip install --break-system-packages --upgrade pip build
134+
135+
# Run build (now that pip/build are installed/upgraded)
133136
python3 -m build
137+
138+
# Install wheels using the flag (latest pip supports it now)
134139
python3 -m pip install --break-system-packages dist/*.whl
135140
136141
omnipkg --version

0 commit comments

Comments
 (0)