github actions doesn't have nightly and I can't be bothered

This commit is contained in:
nora 2022-03-06 17:17:28 +01:00
parent 52f733fdfe
commit 4f5f9d6513
2 changed files with 3 additions and 5 deletions

View file

@ -3,16 +3,15 @@ use anyhow::ensure;
use std::process::Command; use std::process::Command;
pub fn main() -> anyhow::Result<()> { pub fn main() -> anyhow::Result<()> {
println!("$ cargo +nightly fmt --check"); println!("$ cargo fmt --check");
let status = Command::new("cargo") let status = Command::new("cargo")
.arg("+nightly")
.arg("fmt") .arg("fmt")
.arg("--check") .arg("--check")
.current_dir(project_root()) .current_dir(project_root())
.status()?; .status()?;
ensure!( ensure!(
status.success(), status.success(),
"`cargo +nightly fmt --check` did not exit successfully" "`cargo fmt --check` did not exit successfully"
); );
println!("$ yarn"); println!("$ yarn");

View file

@ -3,9 +3,8 @@ use anyhow::ensure;
use std::process::Command; use std::process::Command;
pub fn main() -> anyhow::Result<()> { pub fn main() -> anyhow::Result<()> {
println!("$ cargo +nightly fmt"); println!("$ cargo fmt");
let status = Command::new("cargo") let status = Command::new("cargo")
.arg("+nightly")
.arg("fmt") .arg("fmt")
.current_dir(project_root()) .current_dir(project_root())
.status()?; .status()?;