From 2c21a652624e04ec8010b9bbea08bdfe0343533b Mon Sep 17 00:00:00 2001 From: Victor Koenders Date: Sat, 11 Dec 2021 10:28:41 +0100 Subject: [PATCH] Added a pipeline to deny 'no_global_oom_handling' --- .github/workflows/rust.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0dc00b42..8b59bc07 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -118,6 +118,32 @@ fi", } ] }, + "no_oom": { + "name": "Check try_reserve (Will fail for now)", + "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 alloc -Z build-std=core,alloc --target x86_64-unknown-linux-gnu", + "env": { + "RUSTFLAGS": "--cfg no_global_oom_handling" + } + } + ] + }, "lints": { "name": "Lints", "runs-on": "ubuntu-latest",