Skip to content

[WIP] Deny OOM, embrace try_reserve #14

[WIP] Deny OOM, embrace try_reserve

[WIP] Deny OOM, embrace try_reserve #14

Workflow file for this run

{
"name": "strict OOM",
"on": {
"push": {
"branches": [
"trunk",
"v*.x",
"ci/*"
]
},
"pull_request": {
"branches": [
"trunk",
"v*.x"
]
}
},
"jobs": {
"no_oom": {
"name": "Strict OOM checks",
"runs-on": "ubuntu-latest",
"steps": [
{
"uses": "actions/checkout@v2",
"name": "Checkout"
},
{
"uses": "actions-rs/toolchain@v1",
"with": {
"profile": "minimal",
"toolchain": "nightly",
"components": "rust-src",
"override": true
},
"name": "Install Rust nightly"
},
{
"run": "cargo build --no-default-features --features unstable-strict-oom-checks -Z build-std=core,alloc --target x86_64-unknown-linux-gnu",
"env": {
"RUSTFLAGS": "--cfg no_global_oom_handling"
}
}
]
},
"miri": {
"name": "MIRI",
"runs-on": "ubuntu-latest",
"steps": [
{
"uses": "actions/checkout@v2",
"name": "Checkout"
},
{
"run": "rustup toolchain install nightly --component miri \n
rustup override set nightly \n
cargo miri setup",
"name": "Install Rust nightly"
},
{
"run": "cargo miri test",
"name": "Default features"
},
{
"run": "cargo miri test --no-default-features --features unstable-strict-oom-checks",
"name": "Strict OOM check"
}
]
}
}
}