Skip to content

Commit

Permalink
Build static binary on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
bemyak committed May 16, 2022
1 parent b90492f commit 2c84874
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ stages:
rustup_toolchain: stable
target: 'x86_64-apple-darwin'
linux-stable:
imageName: 'ubuntu-20.04'
imageName: 'rust-alpine'
rustup_toolchain: stable
target: 'x86_64-unknown-linux-gnu'
target: 'x86_64-unknown-linux-musl'
pool:
vmImage: $(imageName)
steps:
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
displayName: Install rust
condition: ne( variables['Agent.OS'], 'Windows_NT' )
condition: eq( variables['Agent.OS'], 'Darwin' )
- script: |
set CARGO_HOME=%USERPROFILE%\.cargo
curl -sSf -o rustup-init.exe https://win.rustup.rs
Expand Down

0 comments on commit 2c84874

Please sign in to comment.