From 269d391e8a72e845d6e96219b62d0eac8badf404 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 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4501c293..70e35244 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -109,6 +109,30 @@ fi", } ] }, + "no oom": { + "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",