Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
e00E committed Nov 9, 2024
1 parent 747262a commit afd2aa2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup --quiet toolchain install stable --profile=minimal --component=clippy,rustfmt
- run: rustup --quiet default stable
- run: cargo fmt --check
- run: cargo fetch --quiet --locked
- run: cargo clippy --quiet --frozen --workspace --all-targets -- -D warnings
Expand All @@ -22,7 +20,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: rustup --quiet toolchain install 1.71 --profile=minimal --component=clippy,rustfmt
- run: rustup --quiet toolchain install 1.71 --profile=minimal
- run: rustup --quiet default 1.71
- run: cargo fetch --quiet --locked
- run: cargo clippy --quiet --frozen --workspace --all-targets -- -D warnings
Expand Down
11 changes: 0 additions & 11 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,6 @@ fn run_command(command: &mut Command) -> Result<Output> {
Ok(output)
}

fn installed_rustup_targets() -> Result<Vec<String>> {
let output = run_command(Command::new("rustup").args(["target", "list", "--installed"]))?;
let stdout = std::str::from_utf8(output.stdout.as_slice()).context("stdout is not utf8")?;
let result = stdout
.split('\n')
.filter(|s| !s.is_empty())
.map(Into::into)
.collect();
Ok(result)
}

fn install_rustup_target(target: &str) -> Result<()> {
run_command(Command::new("rustup").args([
"--quiet",
Expand Down

0 comments on commit afd2aa2

Please sign in to comment.