Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Sep 19, 2024
1 parent 7e4ce48 commit 504e1b7
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions crates/tools/yml/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ fn main() {
}

fn test_yml(name: &str, raw_dylib: bool) {
let mut yml = format!(r"name: {name}
let mut yml = format!(
r"name: {name}
on:
pull_request:
Expand All @@ -18,16 +19,21 @@ on:
- 'web/**'
branches:
- master
");
"
);

if raw_dylib {
write!(&mut yml, r"
if raw_dylib {
write!(
&mut yml,
r"
env:
RUSTFLAGS: --cfg windows_raw_dylib
").unwrap();
}
"
)
.unwrap();
}

write!(&mut yml, r"
write!(&mut yml, r"
jobs:
check:
runs-on: windows-2022
Expand Down

0 comments on commit 504e1b7

Please sign in to comment.