ci: Use same nightly toolchain for docs that's used for other jobs
This commit is contained in:
parent
511ba3d86e
commit
3bd58e3c89
@ -6,15 +6,13 @@ use std::path::PathBuf;
|
|||||||
use clap::{Args, Subcommand};
|
use clap::{Args, Subcommand};
|
||||||
use xshell::pushd;
|
use xshell::pushd;
|
||||||
|
|
||||||
use crate::{cmd, Metadata, Result};
|
use crate::{cmd, Metadata, Result, NIGHTLY};
|
||||||
|
|
||||||
mod spec_links;
|
mod spec_links;
|
||||||
|
|
||||||
use spec_links::check_spec_links;
|
use spec_links::check_spec_links;
|
||||||
|
|
||||||
const MSRV: &str = "1.65";
|
const MSRV: &str = "1.65";
|
||||||
// Keep in sync with version in `rust-toolchain.toml` and `.github/workflows/ci.yml`
|
|
||||||
const NIGHTLY: &str = "nightly-2023-07-03";
|
|
||||||
|
|
||||||
#[derive(Args)]
|
#[derive(Args)]
|
||||||
pub struct CiArgs {
|
pub struct CiArgs {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use clap::Args;
|
use clap::Args;
|
||||||
|
|
||||||
use crate::{cmd, Result};
|
use crate::{cmd, Result, NIGHTLY};
|
||||||
|
|
||||||
#[derive(Args)]
|
#[derive(Args)]
|
||||||
pub struct DocTask {
|
pub struct DocTask {
|
||||||
@ -20,7 +20,7 @@ impl DocTask {
|
|||||||
rustdocflags += " -Dwarnings";
|
rustdocflags += " -Dwarnings";
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut cmd = cmd!("rustup run nightly cargo doc --all-features --no-deps")
|
let mut cmd = cmd!("rustup run {NIGHTLY} cargo doc --all-features --no-deps")
|
||||||
.env("RUSTDOCFLAGS", rustdocflags);
|
.env("RUSTDOCFLAGS", rustdocflags);
|
||||||
|
|
||||||
if self.open {
|
if self.open {
|
||||||
|
@ -14,6 +14,9 @@ use clap::{Parser, Subcommand};
|
|||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
use serde_json::from_str as from_json_str;
|
use serde_json::from_str as from_json_str;
|
||||||
|
|
||||||
|
// Keep in sync with version in `rust-toolchain.toml` and `.github/workflows/ci.yml`
|
||||||
|
const NIGHTLY: &str = "nightly-2023-07-03";
|
||||||
|
|
||||||
#[cfg(feature = "default")]
|
#[cfg(feature = "default")]
|
||||||
mod cargo;
|
mod cargo;
|
||||||
mod ci;
|
mod ci;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user