CI: Run a Windows application without starting the shell too
This commit is contained in:
parent
099981cfc2
commit
7d96b7a799
1 changed files with 3 additions and 0 deletions
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue