File tree Expand file tree Collapse file tree
actions/setup-windows-md-crt Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Setup Windows Dynamic CRT
2+ description : Configure Rust and CMake to use dynamic MSVC CRT (/MD)
3+ runs :
4+ using : composite
5+ steps :
6+ - name : Export dynamic CRT flags
7+ shell : bash
8+ run : |
9+ echo "RUSTFLAGS=-C target-feature=-crt-static" >> "$GITHUB_ENV"
10+ echo "CMAKE_ARGS=-DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL" >> "$GITHUB_ENV"
Original file line number Diff line number Diff line change @@ -119,6 +119,9 @@ jobs:
119119 - name : Build CLI (Windows)
120120 if : matrix.os == 'windows'
121121 shell : bash
122+ env :
123+ RUSTFLAGS : -C target-feature=-crt-static
124+ CMAKE_ARGS : -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL
122125 run : |
123126 echo "🚀 Building Windows CLI executable..."
124127 cargo build --release --target x86_64-pc-windows-msvc -p goose-cli
Original file line number Diff line number Diff line change 7979
8080 - name : Build Windows executable
8181 shell : bash
82+ env :
83+ RUSTFLAGS : -C target-feature=-crt-static
84+ CMAKE_ARGS : -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL
8285 run : |
8386 echo "🚀 Building Windows executable..."
8487 cargo build --release --target x86_64-pc-windows-msvc
You can’t perform that action at this time.
0 commit comments