Skip to content

Commit da5f7c6

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

1 file changed

Lines changed: 21 additions & 22 deletions

File tree

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

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -54,37 +54,36 @@ jobs:
5454
run: |
5555
set -x
5656
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"
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
6664
else
67-
echo "❌ No suitable Python found"
65+
echo "❌ No system Python found"
6866
exit 1
6967
fi
7068
69+
echo "🎯 Using Python: $PY"
7170
$PY --version
71+
which $PY
7272
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-
}
73+
# Create clean venv
74+
$PY -m venv .venv
75+
source .venv/bin/activate
7976
80-
echo "Building package..."
81-
$PY -m build
77+
# Upgrade pip and install build
78+
python -m pip install --upgrade pip build
79+
80+
# Build
81+
python -m build
8282
83-
echo "Installing package..."
84-
$PY -m pip install --user --force-reinstall dist/*.whl
83+
# Install
84+
pip install dist/*.whl
8585
86-
echo "Testing installation..."
87-
export PATH="$HOME/.local/bin:$PATH"
86+
# Test
8887
omnipkg --version
8988
8pkg --version
9089
omnipkg list

0 commit comments

Comments
 (0)