Skip to content

Commit ff14165

Browse files
committed
move rustflags
1 parent ab45a8a commit ff14165

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/upload-binaries.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ jobs:
4242
with:
4343
project_id: ${{ secrets.GCP_PROJECT_ID }}
4444
service_account_key: ${{ secrets.GCP_SA_KEY }}
45-
- name: Cargo build
45+
- name: Cargo build # crt-static is set with RUSTFLAGS to statically link MSVCRT (VCRUNTIME140.dll)
4646
run: |
4747
rustup target add i686-pc-windows-msvc
48+
$env:RUSTFLAGS="-C target-feature=+crt-static"
4849
cargo build -p tmc-langs-cli --release --verbose --target ${{ matrix.target }}
49-
- name: Deploy # crt-static is set with RUSTFLAGS to statically link MSVCRT (VCRUNTIME140.dll)
50+
- name: Deploy
5051
run: |
5152
$env:python_version=$(python -c 'import sys; print(\".\".join(map(str, sys.version_info[:3])))')
5253
$env:CLOUDSDK_PYTHON="C:\hostedtoolcache\windows\Python\$env:python_version\x64\python"
53-
$env:RUSTFLAGS="-C target-feature=+crt-static"
5454
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
5555
5656
macos:

0 commit comments

Comments
 (0)