File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,11 @@ jobs:
46
46
run : |
47
47
rustup target add i686-pc-windows-msvc
48
48
cargo build -p tmc-langs-cli --release --verbose --target ${{ matrix.target }}
49
- - name : Deploy
49
+ - name : Deploy # crt-static is set with RUSTFLAGS to statically link MSVCRT (VCRUNTIME140.dll)
50
50
run : |
51
51
$env:python_version=$(python -c 'import sys; print(\".\".join(map(str, sys.version_info[:3])))')
52
52
$env:CLOUDSDK_PYTHON="C:\hostedtoolcache\windows\Python\$env:python_version\x64\python"
53
+ $env:RUSTFLAGS="-C target-feature=+crt-static"
53
54
gsutil cp target/${{ matrix.target }}/release/tmc-langs-cli.exe gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-cli-${{ matrix.target }}-$Env:TAG.exe
54
55
55
56
macos :
You can’t perform that action at this time.
0 commit comments