Merge pull request #1049 from Luni-4/no-windows-console

CI: Run a Windows application without starting the shell too
This commit is contained in:
Héctor Ramón 2021-09-20 14:08:37 +07:00 committed by GitHub
commit 456a3f15e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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