Skip to content

Commit

Permalink
Added a pipeline to deny 'no_global_oom_handling'
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorKoenders committed Dec 11, 2021
1 parent 882e227 commit 5d4fae1
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,32 @@ fi",
}
]
},
"no_oom": {
"name": "Check try_reserve",
"runs-on": "ubuntu-latest",
"steps": [
{
"uses": "actions/checkout@v2",
"name": "Checkout"
},
{
"uses": "actions-rs/toolchain@v1",
"with": {
"profile": "minimal",
"toolchain": "nightly",
"components": "rust-std",
"override": true
},
"name": "Install Rust nightly"
},
{
"run": "cargo build --no-default-features --features alloc -Z build-std=core,alloc --target x86_64-pc-windows-msvc",
"env": {
"RUSTFLAGS": "--cfg no_global_oom_handling"
}
}
]
},
"lints": {
"name": "Lints",
"runs-on": "ubuntu-latest",
Expand Down

0 comments on commit 5d4fae1

Please sign in to comment.