Skip to content
Draft
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
40 changes: 37 additions & 3 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,47 @@ jobs:

- name: Create task venv for Copilot
run: |
python3 -m venv $GITHUB_WORKSPACE/.venv
source $GITHUB_WORKSPACE/.venv/bin/activate
cd "$GITHUB_WORKSPACE"
mkdir -p "${RUNNER_WORKDIR}/.home" "${RUNNER_WORKDIR}/.pip-cache" "${RUNNER_WORKDIR}/.tmp" "${RUNNER_WORKDIR}/.uv-cache" "${RUNNER_WORKDIR}/.cache"
echo "UV_CACHE_DIR=${RUNNER_WORKDIR}/.uv-cache" >> "$GITHUB_ENV"
/opt/venv/bin/python -m venv --system-site-packages .venv
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine for now but I wonder if we can move all that logic into the apptainer image itself.

OPT_SITE=$(/opt/venv/bin/python -c "import site; print(site.getsitepackages()[0])")
VENV_PY_VER=$(/opt/venv/bin/python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')
VENV_SITE=".venv/lib/python${VENV_PY_VER}/site-packages"
echo "import site; site.addsitedir('$OPT_SITE')" > "$VENV_SITE/opt-venv.pth"
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e . --cache-dir "${RUNNER_WORKDIR}/.pip-cache"

- name: Install IntelliKit Python packages
run: |
source "$GITHUB_WORKSPACE/.venv/bin/activate"
# accordo and nexus require kerneldb which needs libdwarf-dev; skipped until added to container
# pip install --cache-dir "${RUNNER_WORKDIR}/.pip-cache" "git+https://github.com/AMDResearch/intellikit.git#subdirectory=accordo"
# pip install --cache-dir "${RUNNER_WORKDIR}/.pip-cache" "git+https://github.com/AMDResearch/intellikit.git#subdirectory=nexus"
pip install --cache-dir "${RUNNER_WORKDIR}/.pip-cache" "git+https://github.com/AMDResearch/intellikit.git#subdirectory=linex"
pip install --cache-dir "${RUNNER_WORKDIR}/.pip-cache" "git+https://github.com/AMDResearch/intellikit.git#subdirectory=metrix"

- name: Install uv for MCP servers
run: |
source "$GITHUB_WORKSPACE/.venv/bin/activate"
pip install --cache-dir "${RUNNER_WORKDIR}/.pip-cache" uv

- name: Clone IntelliKit for MCP servers
run: |
git clone --depth 1 https://github.com/AMDResearch/intellikit.git "$GITHUB_WORKSPACE/.intellikit"

- name: Install IntelliKit agent skills
run: |
cd "$GITHUB_WORKSPACE"
mkdir -p .github/agents/skills
curl -sSL https://raw.githubusercontent.com/AMDResearch/intellikit/main/install/skills/install.sh | \
bash -s -- --target agents --base-url https://raw.githubusercontent.com/AMDResearch/intellikit/main
cp -r .agents/skills/* .github/agents/skills/ 2>/dev/null || true
Comment on lines +62 to +63
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
bash -s -- --target agents --base-url https://raw.githubusercontent.com/AMDResearch/intellikit/main
cp -r .agents/skills/* .github/agents/skills/ 2>/dev/null || true
bash -s -- --target github --base-url https://raw.githubusercontent.com/AMDResearch/intellikit/main

AMDResearch/intellikit#68


- name: Make venv default for subsequent steps
run: |
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH
echo "$GITHUB_WORKSPACE/.venv/bin" >> "$GITHUB_PATH"

- name: Verify ROCm and GPU visibility
run: |
Expand Down
Loading