From 7d96b7a7993166feb1cc62471cd3600e2d81f487 Mon Sep 17 00:00:00 2001 From: Luni-4 Date: Fri, 17 Sep 2021 12:42:08 +0200 Subject: CI: Run a Windows application without starting the shell too --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to '.github') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a00e2a22..25909870 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,6 +51,9 @@ jobs: mkdir .cargo echo '[target.x86_64-pc-windows-msvc]' >> .cargo/config echo 'rustflags = ["-Ctarget-feature=+crt-static"]' >> .cargo/config + - name: Run the application without starting the shell + run: | + sed -i '1 i\#![windows_subsystem = \"windows\"]' examples/todos/src/main.rs - name: Build todos binary run: cargo build --verbose --release --package todos - name: Archive todos binary -- cgit