Skip to content

Commit 52ab4a7

Browse files
committed
fix more errors
1 parent fcdee8c commit 52ab4a7

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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"

.github/workflows/build-cli.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/bundle-desktop-windows.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ jobs:
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

0 commit comments

Comments
 (0)