Skip to content

Commit

Permalink
move rustflags
Browse files Browse the repository at this point in the history
  • Loading branch information
Heliozoa committed Jul 20, 2020
1 parent ab45a8a commit ff14165
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/upload-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ jobs:
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
- name: Cargo build
- name: Cargo build # crt-static is set with RUSTFLAGS to statically link MSVCRT (VCRUNTIME140.dll)
run: |
rustup target add i686-pc-windows-msvc
$env:RUSTFLAGS="-C target-feature=+crt-static"
cargo build -p tmc-langs-cli --release --verbose --target ${{ matrix.target }}
- name: Deploy # crt-static is set with RUSTFLAGS to statically link MSVCRT (VCRUNTIME140.dll)
- name: Deploy
run: |
$env:python_version=$(python -c 'import sys; print(\".\".join(map(str, sys.version_info[:3])))')
$env:CLOUDSDK_PYTHON="C:\hostedtoolcache\windows\Python\$env:python_version\x64\python"
$env:RUSTFLAGS="-C target-feature=+crt-static"
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
macos:
Expand Down

0 comments on commit ff14165

Please sign in to comment.