Skip to content

Commit 86d8d6c

Browse files
YanLienZR233szybuhenxihuanbullhh
authored
ci: fix doc deployment for cross-target builds (#51)
* refactor: deps git to crates-io * fix: feature * refactor: support guest dyn entry * refactor: add Clone trait to VMImageConfig * fix: update arm_vcpu branch to 'next' * add fdt support and add some AxVMConfig impl * fix fmt bug * fix bug: when no phys_cpu_ids panic * add function map_reserved_memory_region (#28) * add function map_reserved_memory_region * add passthrough address (#29) * add pass_through address --------- Co-authored-by: szy <songzhyo@qq.com> * add VMStatus enum and integrate into AxVM lifecycle management (#31) * feat: update axerrno to 0.2 (#33) * feat: update axerrno to 0.2 * fix: clippy * Update riscv_vcpu dependency source (#39) * fix(riscv): Fix RISC-V vCPU initialization and I/O handling * chore: Update riscv_vcpu dependency source * chore: specify axdevice branch and fix code formatting * docs: add missing documentation comments * chore: migrate from git to published versions * chore: bump version to v0.2.1 * fix(vm): remove duplicate code lines * fix(vm): adapt to axvcpu v0.2 API changes * fix(vm): adapt to v0.2 API changes for multi-architecture compatibility * ci: fix doc deployment for cross-target builds --------- Co-authored-by: 周睿 <zrufo747@outlook.com> Co-authored-by: szy <songzhyo@qq.com> Co-authored-by: bhxh <32200913+buhenxihuan@users.noreply.github.com> Co-authored-by: szy <673586548@qq.com> Co-authored-by: 朝倉水希 <asakuramizu111@gmail.com>
1 parent 7f46084 commit 86d8d6c

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,30 @@ jobs:
8787
env:
8888
RUSTDOCFLAGS: -D rustdoc::broken_intra_doc_links -D missing-docs
8989
run: |
90+
# Build documentation
9091
cargo doc --no-deps --all-features
91-
printf '<meta http-equiv="refresh" content="0;url=%s/index.html">' $(cargo tree | head -1 | cut -d' ' -f1) > target/doc/index.html
92+
93+
# Auto-detect documentation directory
94+
# Check if doc exists in target/doc or target/*/doc
95+
if [ -d "target/doc" ]; then
96+
DOC_DIR="target/doc"
97+
else
98+
# Find doc directory under target/*/doc pattern
99+
DOC_DIR=$(find target -type d -name doc -path "target/*/doc" | head -n 1)
100+
if [ -z "$DOC_DIR" ]; then
101+
echo "Error: Could not find documentation directory"
102+
exit 1
103+
fi
104+
fi
105+
106+
echo "Documentation found in: $DOC_DIR"
107+
printf '<meta http-equiv="refresh" content="0;url=%s/index.html">' $(cargo tree | head -1 | cut -d' ' -f1) > "${DOC_DIR}/index.html"
108+
echo "DOC_DIR=${DOC_DIR}" >> $GITHUB_ENV
92109
93110
- name: Upload artifact
94111
uses: actions/upload-pages-artifact@v3
95112
with:
96-
path: target/doc
113+
path: ${{ env.DOC_DIR }}
97114

98115
deploy:
99116
name: Deploy to GitHub Pages

0 commit comments

Comments
 (0)