Skip to content

Commit

Permalink
Use native target in ci instead of linux (#657)
Browse files Browse the repository at this point in the history
* Use native target in ci instead of linux

* rustfmt
  • Loading branch information
gak authored Nov 15, 2024
1 parent 3c701c3 commit d1cb595
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/ci/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ const CLIPPY_FLAGS: [&str; 3] = [
"-Dwarnings",
];

const COMPILE_TARGETS: &[&str] = &["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"];

fn main() {
// When run locally, results may differ from actual CI runs triggered by
// .github/workflows/ci.yml
Expand Down Expand Up @@ -149,10 +147,11 @@ fn main() {
}

if what_to_run.contains(Check::COMPILE_CHECK) {
for target in COMPILE_TARGETS {
let compile_targets = &[vec![], vec!["--target", "wasm32-unknown-unknown"]];
for target in compile_targets {
cmd!(
sh,
"cargo check --workspace {feature_option} {extra...} --target {target}"
"cargo check --workspace {feature_option} {extra...} {target...}"
)
.run()
.expect("Please fix compiler errors in above output.");
Expand Down

0 comments on commit d1cb595

Please sign in to comment.