CI round 2
This commit is contained in:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
|||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
components: rustfmt clippy
|
components: rustfmt, clippy
|
||||||
override: true
|
override: true
|
||||||
- name: Rustfmt
|
- name: Rustfmt
|
||||||
run: cargo +nightly fmt --all -- --check
|
run: cargo +nightly fmt --all -- --check
|
||||||
@@ -50,7 +50,7 @@ jobs:
|
|||||||
- name: Windows
|
- name: Windows
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
- name: driver only
|
- name: driver only
|
||||||
features: driver
|
features: driver rustls
|
||||||
- name: gateway only
|
- name: gateway only
|
||||||
features: serenity-rustls
|
features: serenity-rustls
|
||||||
|
|
||||||
@@ -131,8 +131,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RUSTDOCFLAGS: -D broken_intra_doc_links
|
RUSTDOCFLAGS: -D broken_intra_doc_links
|
||||||
run: |
|
run: |
|
||||||
cargo doc --no-deps --features collector,voice
|
cargo doc --no-deps --all-features
|
||||||
cargo doc --no-deps -p command_attr
|
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
name: Examples
|
name: Examples
|
||||||
|
|||||||
2
.github/workflows/docs.yml
vendored
2
.github/workflows/docs.yml
vendored
@@ -49,7 +49,7 @@ jobs:
|
|||||||
DIR=${GITHUB_REF/refs\/+(heads|tags)\//}
|
DIR=${GITHUB_REF/refs\/+(heads|tags)\//}
|
||||||
mkdir -p ./docs/$DIR
|
mkdir -p ./docs/$DIR
|
||||||
touch ./docs/.nojekyll
|
touch ./docs/.nojekyll
|
||||||
echo '<meta http-equiv="refresh" content="0;url=serenity/index.html">' > ./docs/$DIR/index.html
|
echo '<meta http-equiv="refresh" content="0;url=songbird/index.html">' > ./docs/$DIR/index.html
|
||||||
mv ./target/doc/* ./docs/$DIR/
|
mv ./target/doc/* ./docs/$DIR/
|
||||||
|
|
||||||
- name: Deploy docs
|
- name: Deploy docs
|
||||||
|
|||||||
@@ -32,7 +32,9 @@ Songbird's logo is based upon the copyright-free image ["Black-Capped Chickadee"
|
|||||||
[lavalink]: https://github.com/Frederikam/Lavalink
|
[lavalink]: https://github.com/Frederikam/Lavalink
|
||||||
[this crate's examples directory]: https://github.com/serenity-rs/songbird/tree/current/examples
|
[this crate's examples directory]: https://github.com/serenity-rs/songbird/tree/current/examples
|
||||||
|
|
||||||
[build badge]: https://img.shields.io/github/workflow/status/serenity-rs/songbird/Build%20and%20Test%20(Stable)?style=flat-square
|
https://github.com/serenity-rs/songbird/actions/runs/362160207
|
||||||
|
|
||||||
|
[build badge]: https://img.shields.io/github/workflow/status/serenity-rs/songbird/CI?style=flat-square
|
||||||
[build]: https://github.com/serenity-rs/songbird/actions
|
[build]: https://github.com/serenity-rs/songbird/actions
|
||||||
|
|
||||||
[docs-badge]: https://img.shields.io/badge/docs-online-4d76ae.svg?style=flat-square
|
[docs-badge]: https://img.shields.io/badge/docs-online-4d76ae.svg?style=flat-square
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#![doc(
|
#![doc(
|
||||||
html_logo_url = "https://raw.githubusercontent.com/serenity-rs/songbird/master/songbird.png",
|
html_logo_url = "https://raw.githubusercontent.com/serenity-rs/songbird/current/songbird.png",
|
||||||
html_favicon_url = "https://raw.githubusercontent.com/serenity-rs/songbird/master/songbird-ico.png"
|
html_favicon_url = "https://raw.githubusercontent.com/serenity-rs/songbird/current/songbird-ico.png"
|
||||||
)]
|
)]
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
//! ![project logo][logo]
|
//! ![project logo][logo]
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
//!
|
//!
|
||||||
//! Songbird's logo is based upon the copyright-free image ["Black-Capped Chickadee"] by George Gorgas White.
|
//! Songbird's logo is based upon the copyright-free image ["Black-Capped Chickadee"] by George Gorgas White.
|
||||||
//!
|
//!
|
||||||
//! [logo]: https://github.com/serenity-rs/songbird/raw/master/songbird.png
|
//! [logo]: https://raw.githubusercontent.com/serenity-rs/songbird/current/songbird.png
|
||||||
//! [serenity]: https://github.com/serenity-rs/serenity
|
//! [serenity]: https://github.com/serenity-rs/serenity
|
||||||
//! [twilight]: https://github.com/twilight-rs/twilight
|
//! [twilight]: https://github.com/twilight-rs/twilight
|
||||||
//! [this crate's examples directory]: https://github.com/serenity-rs/songbird/tree/current/examples
|
//! [this crate's examples directory]: https://github.com/serenity-rs/songbird/tree/current/examples
|
||||||
|
|||||||
Reference in New Issue
Block a user