Skip to content

Commit 7232086

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

1 file changed

Lines changed: 22 additions & 21 deletions

File tree

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

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -54,36 +54,37 @@ jobs:
5454
run: |
5555
set -x
5656
57-
# Find system Python (NOT conda)
58-
if command -v python3.11 &>/dev/null && [[ "$(which python3.11)" != *"conda"* ]]; then
59-
PY=python3.11
60-
elif command -v python3.12 &>/dev/null && [[ "$(which python3.12)" != *"conda"* ]]; then
61-
PY=python3.12
62-
elif command -v python3 &>/dev/null && [[ "$(which python3)" != *"conda"* ]]; then
63-
PY=python3
57+
if [ -f "$HOME/miniconda3/envs/evocoder_env/bin/python3.11" ]; then
58+
PY="$HOME/miniconda3/envs/evocoder_env/bin/python3.11"
59+
echo "🎯 Using conda env native Python 3.11: $PY"
60+
elif [ -f "/usr/bin/python3.11" ]; then
61+
PY=/usr/bin/python3.11
62+
echo "🎯 Using system Python 3.11: $PY"
63+
elif [ -f "/usr/bin/python3.12" ]; then
64+
PY=/usr/bin/python3.12
65+
echo "🎯 Using system Python 3.12: $PY"
6466
else
65-
echo "❌ No system Python found"
67+
echo "❌ No suitable Python found"
6668
exit 1
6769
fi
6870
69-
echo "🎯 Using Python: $PY"
7071
$PY --version
71-
which $PY
7272
73-
# Create clean venv
74-
$PY -m venv .venv
75-
source .venv/bin/activate
73+
echo "🔥 Installing pip and build"
74+
$PY -m pip install --user --upgrade pip build || {
75+
echo "❌ Failed. Trying bootstrap..."
76+
curl -sS https://bootstrap.pypa.io/get-pip.py | $PY - --user
77+
$PY -m pip install --user --upgrade pip build
78+
}
7679
77-
# Upgrade pip and install build
78-
python -m pip install --upgrade pip build
79-
80-
# Build
81-
python -m build
80+
echo "Building package..."
81+
$PY -m build
8282
83-
# Install
84-
pip install dist/*.whl
83+
echo "Installing package..."
84+
$PY -m pip install --user --force-reinstall dist/*.whl
8585
86-
# Test
86+
echo "Testing installation..."
87+
export PATH="$HOME/.local/bin:$PATH"
8788
omnipkg --version
8889
8pkg --version
8990
omnipkg list

0 commit comments

Comments
 (0)