Skip to content

Commit bee0fa3

Browse files
committed
Statically link the Windows executable
1 parent ba4e994 commit bee0fa3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ jobs:
111111
cargo build --release --target ${{ matrix.target }}
112112
fi
113113
shell: bash
114+
env:
115+
RUSTFLAGS: ${{ matrix.target == 'x86_64-pc-windows-msvc' && '-C target-feature=+crt-static' || '' }}
114116

115117
- name: Package (Unix)
116118
if: matrix.os != 'windows-latest'

0 commit comments

Comments
 (0)