diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4501c293..e070a51e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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",