Fix sccache build error by removing CARGO_INCREMENTAL

sccache and incremental compilation are incompatible. Removing
CARGO_INCREMENTAL=1 since sccache provides better caching benefits
in CI environments.
This commit is contained in:
James Peter
2025-08-14 21:20:06 +10:00
parent 3055068d85
commit eb922a7c98
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -173,9 +173,9 @@ jobs:
- name: Build binaries
run: |
cd codex-rs
# Use all available cores and enable incremental compilation
# Use all available cores
export CARGO_BUILD_JOBS=$(($(nproc || sysctl -n hw.ncpu || echo 2) * 2))
export CARGO_INCREMENTAL=1
# Note: CARGO_INCREMENTAL is disabled when using sccache
echo "Building with $CARGO_BUILD_JOBS parallel jobs"
cargo build --release --target ${{ matrix.target }} --bin coder --bin coder-tui --bin coder-exec
+2 -2
View File
@@ -126,9 +126,9 @@ jobs:
- name: Cargo build
shell: bash
run: |
# Use all available cores and enable incremental compilation
# Use all available cores
export CARGO_BUILD_JOBS=$(($(nproc || sysctl -n hw.ncpu || echo 2) * 2))
export CARGO_INCREMENTAL=1
# Note: CARGO_INCREMENTAL is disabled when using sccache
echo "Building with $CARGO_BUILD_JOBS parallel jobs"
cargo build --target ${{ matrix.target }} --release --bin coder
+2
View File
@@ -476,6 +476,8 @@ impl Page {
rect.setAttribute('stroke', 'white');
rect.setAttribute('stroke-width','1');
rect.setAttribute('vector-effect','non-scaling-stroke');
rect.setAttribute('filter', 'url(#vc-drop-shadow)');
badge.appendChild(defs.cloneNode(true));
const glyphs = createSvg('path');
glyphs.setAttribute('d',