Skip to content

Commit

Permalink
Tidy xtask
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-bourne committed Oct 20, 2023
1 parent bf13661 commit e470ff1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 9 additions & 14 deletions packages/xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,19 @@ fn main() {

fn ci() -> CI {
let mut workflow = CI::new();
let stable_rustc = || rust_toolchain("1.73").minimal().default().wasm();
let wasm_pack = || install("wasm-pack", "0.12.1");

for platform in Platform::latest() {
workflow.add_job(
Tasks::new(
"tests",
platform,
rust_toolchain("1.73").minimal().default().clippy().wasm(),
)
.step(install("wasm-pack", "0.12.1"))
.tests(),
Tasks::new("tests", platform, stable_rustc().clippy())
.setup(wasm_pack())
.tests(),
);
workflow.add_job(
Tasks::new(
"release-tests",
platform,
rust_toolchain("1.73").minimal().default().wasm(),
)
.step(install("wasm-pack", "0.12.1"))
.release_tests(),
Tasks::new("release-tests", platform, stable_rustc())
.setup(wasm_pack())
.release_tests(),
);
}

Expand Down

0 comments on commit e470ff1

Please sign in to comment.