From afe3673575590e2e933d83f64717615d2df17927 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Tue, 23 Dec 2025 14:01:06 +0100 Subject: [PATCH] Fix windows --- .github/workflows/rust-ci.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 3bacce99e7..2b1ae46b1e 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -284,7 +284,8 @@ jobs: working-directory: codex-rs env: CARGO_INCREMENTAL: "0" - CARGO_TARGET_DIR: ${{ github.workspace }}/.target/${{ matrix.target }}-${{ matrix.profile }} + # Tests run with the custom ci-test profile; keep target dir keyed to it. + CARGO_TARGET_DIR: ${{ github.workspace }}/.target/${{ matrix.target }}-ci-test strategy: fail-fast: false @@ -337,7 +338,7 @@ jobs: with: workspaces: | codex-rs - shared-key: rust-ci-tests-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }} + shared-key: rust-ci-tests-${{ matrix.runner }}-${{ matrix.target }}-ci-test cache-targets: true cache-on-failure: true @@ -355,10 +356,7 @@ jobs: set -euo pipefail RECIPE="${RUNNER_TEMP}/chef-recipe.json" cargo chef prepare --recipe-path "$RECIPE" - PROFILE_ARGS="--profile ${{ matrix.profile }}" - if [[ "${{ matrix.profile }}" == "release" ]]; then - PROFILE_ARGS="--release" - fi + PROFILE_ARGS="--profile ci-test" cargo chef cook --recipe-path "$RECIPE" --target ${{ matrix.target }} $PROFILE_ARGS --all-features - uses: taiki-e/install-action@44c6d64aa62cd779e873306675c7a58e86d6d532 # v2