Skip to content

Commit

Permalink
ci: Link gdb-py against Python 3.10
Browse files Browse the repository at this point in the history
This commit updates the CI workflow to link Python-enabled GDB against
Python 3.10, which is now the minimum required version by Zephyr.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
  • Loading branch information
stephanosio committed Sep 17, 2024
1 parent 7a058ad commit 20d0257
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,8 @@ jobs:
echo "${WORKSPACE}/crosskit/scripts" >> $GITHUB_PATH
fi
# Make Python 3.8 available in PATH
echo "${HOMEBREW_PREFIX}/opt/python@3.8/bin" >> $GITHUB_PATH
# Make Python 3.10 available in PATH
echo "${HOMEBREW_PREFIX}/opt/python@3.10/bin" >> $GITHUB_PATH
# Set environment variables
echo "TAR=gtar" >> $GITHUB_ENV
Expand Down Expand Up @@ -701,8 +701,8 @@ jobs:
git clone \
https://github.com/stephanosio/crosskit-x86_64-darwin-libpython.git \
${WORKSPACE}/crosskit-x86_64-darwin-libpython
# Use Python 3.8.12
export LIBPYTHON_KIT_ROOT=${WORKSPACE}/crosskit-x86_64-darwin-libpython/python-3.8.12
# Use Python 3.10.12
export LIBPYTHON_KIT_ROOT=${WORKSPACE}/crosskit-x86_64-darwin-libpython/python-3.10.15
# Set Python configuration resolver for GDB
cat <<EOF >> .config
CT_GDB_CROSS_PYTHON_BINARY="${LIBPYTHON_KIT_ROOT}/bin/python"
Expand All @@ -712,16 +712,16 @@ jobs:
git clone \
https://github.com/stephanosio/crosskit-mingw-w64-libpython.git \
${WORKSPACE}/crosskit-mingw-w64-libpython
# Use Python 3.8.3
export LIBPYTHON_KIT_ROOT=${WORKSPACE}/crosskit-mingw-w64-libpython/python-3.8.3
# Use Python 3.10.15
export LIBPYTHON_KIT_ROOT=${WORKSPACE}/crosskit-mingw-w64-libpython/python-3.10.15
# Set Python configuration resolver for GDB
cat <<EOF >> .config
CT_GDB_CROSS_PYTHON_BINARY="${LIBPYTHON_KIT_ROOT}/bin/python"
EOF
else
# Use Python 3.8 for non-Canadian Linux and macOS builds
# Use Python 3.10 for non-Canadian Linux and macOS builds
cat <<EOF >> .config
CT_GDB_CROSS_PYTHON_BINARY="python3.8"
CT_GDB_CROSS_PYTHON_BINARY="python3.10"
EOF
fi
Expand Down

0 comments on commit 20d0257

Please sign in to comment.