Skip to content

Commit

Permalink
ci: add rustfmt to Ubuntu container
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Dec 19, 2024
1 parent 303916d commit 3f5469c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/ciimage/ubuntu-rolling/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ dub build dubtestproject:test2 --compiler=ldc2
# Remove debian version of Rust and install latest with rustup.
# This is needed to get the cross toolchain as well.
apt-get -y remove rustc || true
wget -O - https://sh.rustup.rs | sh -s -- -y --profile minimal --component clippy
wget -O - https://sh.rustup.rs | sh -s -- -y --profile minimal --component clippy --component rustfmt
source "$HOME/.cargo/env"
rustup target add x86_64-pc-windows-gnu
rustup target add arm-unknown-linux-gnueabihf
Expand Down
4 changes: 2 additions & 2 deletions ci/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ if ($env:arch -eq 'x64') {
$env:Path = "C:\hostedtoolcache\windows\Python\3.7.9\x86;C:\hostedtoolcache\windows\Python\3.7.9\x86\Scripts;$env:Path"
}

# Also install clippy
rustup component add clippy
# Also install clippy and rustfmt for unittests
rustup component add clippy rustfmt

# Set the CI env var for the meson test framework
$env:CI = '1'
Expand Down

0 comments on commit 3f5469c

Please sign in to comment.