Lightweight coding agent that runs in your terminal
Rust
Update shell-tool-mcp.yml (#10095)
Dylan Hurd35e03a071663
diff --git a/.github/workflows/shell-tool-mcp.yml b/.github/workflows/shell-tool-mcp.ymlindex 2ae60b3e15..a0eae56b59 100644--- a/.github/workflows/shell-tool-mcp.yml+++ b/.github/workflows/shell-tool-mcp.yml@@ -93,6 +93,16 @@ jobs:- name: Checkout repositoryuses: actions/checkout@v6+ - name: Install UBSan runtime (musl)+ if: ${{ matrix.install_musl }}+ shell: bash+ run: |+ set -euo pipefail+ if command -v apt-get >/dev/null 2>&1; then+ sudo apt-get update -y+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libubsan1+ fi+- uses: dtolnay/[email protected]with:targets: ${{ matrix.target }}@@ -109,6 +119,58 @@ jobs:TARGET: ${{ matrix.target }}run: bash "${GITHUB_WORKSPACE}/.github/scripts/install-musl-build-tools.sh"+ - if: ${{ matrix.install_musl }}+ name: Configure rustc UBSan wrapper (musl host)+ shell: bash+ run: |+ set -euo pipefail+ ubsan=""+ if command -v ldconfig >/dev/null 2>&1; then+ ubsan="$(ldconfig -p | grep -m1 'libubsan\.so\.1' | sed -E 's/.*=> (.*)$/\1/')"+ fi+ wrapper_root="${RUNNER_TEMP:-/tmp}"+ wrapper="${wrapper_root}/rustc-ubsan-wrapper"+ cat > "${wrapper}" <<EOF+ #!/usr/bin/env bash+ set -euo pipefail+ if [[ -n "${ubsan}" ]]; then+ export LD_PRELOAD="${ubsan}\${LD_PRELOAD:+:\${LD_PRELOAD}}"+ fi+ exec "\$1" "\${@:2}"+ EOF+ chmod +x "${wrapper}"+ echo "RUSTC_WRAPPER=${wrapper}" >> "$GITHUB_ENV"+ echo "RUSTC_WORKSPACE_WRAPPER=" >> "$GITHUB_ENV"++ - if: ${{ matrix.install_musl }}+ name: Clear sanitizer flags (musl)+ shell: bash+ run: |+ set -euo pipefail+ # Clear global Rust flags so host/proc-macro builds don't pull in UBSan.+ echo "RUSTFLAGS=" >> "$GITHUB_ENV"+ echo "CARGO_ENCODED_RUSTFLAGS=" >> "$GITHUB_ENV"+ echo "RUSTDOCFLAGS=" >> "$GITHUB_ENV"+ # Override any runner-level Cargo config rustflags as well.+ echo "CARGO_BUILD_RUSTFLAGS=" >> "$GITHUB_ENV"+ echo "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS=" >> "$GITHUB_ENV"+ echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUSTFLAGS=" >> "$GITHUB_ENV"+ echo "CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_RUSTFLAGS=" >> "$GITHUB_ENV"+ echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS=" >> "$GITHUB_ENV"++ sanitize_flags() {+ local input="$1"+ input="${input//-fsanitize=undefined/}"+ input="${input//-fno-sanitize-recover=undefined/}"+ input="${input//-fno-sanitize-trap=undefined/}"+ echo "$input"+ }++ cflags="$(sanitize_flags "${CFLAGS-}")"+ cxxflags="$(sanitize_flags "${CXXFLAGS-}")"+ echo "CFLAGS=${cflags}" >> "$GITHUB_ENV"+ echo "CXXFLAGS=${cxxflags}" >> "$GITHUB_ENV"+- name: Build exec server binariesrun: cargo build --release --target ${{ matrix.target }} --bin codex-exec-mcp-server --bin codex-execve-wrapper@@ -282,6 +344,7 @@ jobs:- name: Setup pnpmuses: pnpm/action-setup@v4with:+ version: 10.8.1run_install: false- name: Setup Node.js@@ -377,6 +440,7 @@ jobs:- name: Setup pnpmuses: pnpm/action-setup@v4with:+ version: 10.8.1run_install: false- name: Setup Node.js