Skip to content

Commit 7d96b7a

Browse files
committed
CI: Run a Windows application without starting the shell too
1 parent 099981c commit 7d96b7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
mkdir .cargo
5252
echo '[target.x86_64-pc-windows-msvc]' >> .cargo/config
5353
echo 'rustflags = ["-Ctarget-feature=+crt-static"]' >> .cargo/config
54+
- name: Run the application without starting the shell
55+
run: |
56+
sed -i '1 i\#![windows_subsystem = \"windows\"]' examples/todos/src/main.rs
5457
- name: Build todos binary
5558
run: cargo build --verbose --release --package todos
5659
- name: Archive todos binary

0 commit comments

Comments
 (0)