File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -91,20 +91,24 @@ jobs:
91
91
- name : Setup Rust toolchain
92
92
run : rustup show
93
93
94
+ # Build debug library first to fail fast
94
95
- name : Build library (Windows)
95
96
run : cargo build -p framework_lib --no-default-features --features "windows"
96
97
97
98
- name : Build Windows tool
98
- run : cargo build -p framework_tool --no-default-features --features "windows"
99
+ run : |
100
+ cargo build -p framework_tool --no-default-features --features "windows"
101
+ cargo build -p framework_tool --no-default-features --features "windows" --release
99
102
100
103
- name : Check if Windows tool can start
101
- run : cargo run --no-default-features --features "windows" -- --help
104
+ run : cargo run --no-default-features --features "windows" -- --help --release
102
105
106
+ # Upload release build so that vcruntime is statically linked
103
107
- name : Upload Windows App
104
108
uses : actions/upload-artifact@v4
105
109
with :
106
110
name : framework_tool.exe
107
- path : target/debug /framework_tool.exe
111
+ path : target/release /framework_tool.exe
108
112
109
113
110
114
test :
Original file line number Diff line number Diff line change @@ -14,4 +14,5 @@ path = "../framework_lib"
14
14
default-features = false
15
15
16
16
[build-dependencies ]
17
+ # Note: Only takes effect in release builds
17
18
static_vcruntime = " 2.0"
You can’t perform that action at this time.
0 commit comments