File tree Expand file tree Collapse file tree 1 file changed +14
-21
lines changed Expand file tree Collapse file tree 1 file changed +14
-21
lines changed Original file line number Diff line number Diff line change @@ -45,35 +45,28 @@ jobs:
45
45
run : |
46
46
# Note that the above build doesn't set Zephyrbase, so we'll need to do that here.
47
47
west build -t rustdoc -b nrf52840dk/nrf52840 docgen
48
- mkdir docout
49
- mv build/rust/target/thumbv7em-none-eabi/doc docout /nostd
50
- cp docs/top-index.html docout /index.html
48
+ mkdir rustdocs
49
+ mv build/rust/target/thumbv7em-none-eabi/doc rustdocs /nostd
50
+ cp docs/top-index.html rustdocs /index.html
51
51
52
52
- name : Build build documentation
53
53
working-directory : zephyr-rust-lang
54
54
run : |
55
55
cd zephyr-build
56
56
cargo doc
57
- mv target/doc ../docout/std
57
+ mv target/doc ../rustdocs/std
58
+
59
+ - name : Compress docs
60
+ run : |
61
+ tar --use-compress-program="xz -T0" -cf rustdocs.tar.xz rustdocs
62
+
63
+ - name : upload-build
64
+ uses : actions/upload-artifact@v4
65
+ with :
66
+ name : rustdocs
67
+ path : rustdocs.tar.xz
58
68
59
69
- name : Upload artifact
60
70
uses : actions/upload-pages-artifact@v3
61
71
with :
62
72
path : zephyr-rust-lang/docout
63
-
64
- deploy :
65
- needs : generate-docs
66
- permissions :
67
- pages : write
68
- id-token : write
69
-
70
- environment :
71
- name : github-pages
72
- url : ${{ steps.deployment.outputs.page_url }}
73
-
74
- runs-on : ubuntu-latest
75
-
76
- steps :
77
- - name : Deploy to GitHub Pages
78
- id : deployment
79
- uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments