ci: Updated pages.yml workflow
Use nightly channel to enable docs generating feature badges, plus enabled more features in the docs build, and building the cctk docs also
This commit is contained in:
parent
5d1dfc4c54
commit
e5955b568d
2 changed files with 19 additions and 15 deletions
33
.github/workflows/pages.yml
vendored
33
.github/workflows/pages.yml
vendored
|
|
@ -7,21 +7,24 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pages:
|
pages:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: System dependencies
|
- name: Install Rust nightly
|
||||||
run: sudo apt-get update; sudo apt-get install -y libxkbcommon-dev libwayland-dev
|
uses: dtolnay/rust-toolchain@master
|
||||||
- name: Build documentation
|
with:
|
||||||
run: cargo doc --no-deps --verbose --features tokio,winit
|
toolchain: nightly-2025-07-31
|
||||||
- name: Deploy documentation
|
- name: System dependencies
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
run: sudo apt-get update; sudo apt-get install -y libxkbcommon-dev libwayland-dev
|
||||||
with:
|
- name: Build documentation
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
run: RUSTDOCFLAGS="--cfg docsrs" cargo +nightly-2025-07-31 doc --no-deps -p cosmic-client-toolkit -p libcosmic --verbose --features tokio,winit,wayland,process,desktop,single-instance
|
||||||
publish_dir: ./target/doc
|
- name: Deploy documentation
|
||||||
force_orphan: true
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./target/doc
|
||||||
|
force_orphan: true
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
#![allow(clippy::module_name_repetitions)]
|
#![allow(clippy::module_name_repetitions)]
|
||||||
#![cfg_attr(target_os = "redox", feature(lazy_cell))]
|
#![cfg_attr(target_os = "redox", feature(lazy_cell))]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||||
|
|
||||||
/// Recommended default imports.
|
/// Recommended default imports.
|
||||||
pub mod prelude {
|
pub mod prelude {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue