Skip to content

Commit 6b6c2aa

Browse files
committed
test: generate doc on /mnt
1 parent 6953514 commit 6b6c2aa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,14 @@ jobs:
9393
9494
- name: Generate Crate Documentation
9595
run: |
96+
# Use /mnt for cargo target directory to avoid filling root filesystem
97+
export CARGO_TARGET_DIR="/mnt/cargo-target"
98+
sudo mkdir -p "$CARGO_TARGET_DIR"
99+
sudo chown -R "$USER:$USER" "$CARGO_TARGET_DIR"
96100
SIMICS_BASE="${HOME}/simics/simics-${{ env.PUBLIC_SIMICS_PACKAGE_VERSION_1000 }}" RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo doc --document-private-items --workspace --no-deps
97-
cp -a target/doc/ docs/book/html/crates/
101+
# Ensure the destination directory exists before copying
102+
mkdir -p docs/book/html/crates/
103+
cp -a "$CARGO_TARGET_DIR/doc/" docs/book/html/crates/
98104
99105
- name: Set Documentation Permissions
100106
run: |

0 commit comments

Comments
 (0)