|
48 | 48 | curl -L https://dl.dagger.io/dagger/install.sh | sh |
49 | 49 | echo "$HOME/.dagger/bin" >> $GITHUB_PATH |
50 | 50 | - name: Check Dagger version |
51 | | - run: dagger version |
52 | | - |
| 51 | + run: | |
| 52 | + export PATH="$(pwd)/bin:$PATH" |
| 53 | + pwd |
| 54 | + find . -name "dagger" |
| 55 | + dagger version |
| 56 | + echo $PATH |
53 | 57 | - name: Setup Rust toolchain |
54 | 58 | uses: dtolnay/rust-toolchain@stable |
55 | 59 | with: |
@@ -100,25 +104,27 @@ jobs: |
100 | 104 | echo "Final list of versions to build for xtask: $UNIQUE_VERSIONS" |
101 | 105 |
|
102 | 106 | - name: Generate code coverage for documentation |
| 107 | + continue-on-error: true |
103 | 108 | run: | |
104 | 109 | echo "Generating code coverage for documentation inclusion" |
105 | 110 | # Ensure xtask is compiled |
106 | 111 | cargo build --package xtask |
107 | 112 | # Add Dagger to PATH |
108 | | - export PATH=$PATH:$HOME/.dagger/bin |
| 113 | + export PATH=$PATH:$(pwd)/bin |
| 114 | + echo $PATH |
109 | 115 | # Run quick coverage analysis to generate coverage.json for docs |
110 | | - ./target/debug/xtask coverage |
| 116 | + # If this fails, docs will use placeholder coverage instead |
| 117 | + if ! timeout 300 ./target/debug/xtask coverage; then |
| 118 | + echo "Coverage generation failed or timed out, docs will use placeholder coverage" |
| 119 | + exit 0 |
| 120 | + fi |
111 | 121 | env: |
112 | 122 | RUST_LOG: info |
113 | 123 |
|
114 | 124 | - name: Build documentation via Dagger and xtask |
115 | 125 | run: | |
116 | 126 | echo "Building documentation for versions: ${{ env.VERSIONS_TO_BUILD }}" |
117 | | - # Add Dagger to PATH |
118 | | - export PATH=$PATH:$HOME/.dagger/bin |
119 | | - # Run the Dagger pipeline via xtask |
120 | | - # The xtask command will handle connecting to Dagger and running the pipeline. |
121 | | - # Output will be in ./docs_artifact (default or as specified) |
| 127 | + export PATH="$HOME/.dagger/bin:$PATH" |
122 | 128 | ./target/debug/xtask publish-docs-dagger --versions "${{ env.VERSIONS_TO_BUILD }}" --output-dir ./docs_artifact_final |
123 | 129 | env: |
124 | 130 | # DAGGER_LOG_FORMAT: plain # Optional: for cleaner logs in CI |
|
0 commit comments