Skip to content

Commit 456a3f1

Browse files
authored
Merge pull request #1049 from Luni-4/no-windows-console
CI: Run a Windows application without starting the shell too
2 parents 099981c + 7d96b7a commit 456a3f1

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)