Improved Azure Pipelines to make the releases

This commit is contained in:
Syrus 2019-08-28 17:53:33 -07:00
parent a31dae2bf2
commit 366c6e1efb
2 changed files with 30 additions and 12 deletions

View File

@ -2,12 +2,17 @@
steps:
- bash: |
set -ex
if [ -x "`command -v iscc`" ]; then
echo `command -v iscc` `iscc -?` installed
else
choco install innosetup -y
fi
displayName: Install InnoSetup - Windows
condition: eq(variables['Agent.OS'], 'Windows_NT')
- bash: |
set -ex
iscc
displayName: InnoSetup
condition: eq(variables['Agent.OS'], 'Windows_NT')
# - bash: |
# set -ex
# iscc
# displayName: InnoSetup
# condition: eq(variables['Agent.OS'], 'Windows_NT')

View File

@ -93,12 +93,6 @@ jobs:
- template: .azure/install-cmake.yml
- template: .azure/install-innosetup.yml
- template: .azure/install-llvm.yml
- bash: make release
displayName: Build (*nix)
condition: and(succeeded(), not(eq(variables['Agent.OS'], 'Windows_NT')))
- bash: make release-llvm
displayName: Build (Windows)
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
- bash: make capi
displayName: Build c-api (*nix)
condition: and(succeeded(), not(eq(variables['Agent.OS'], 'Windows_NT')))
@ -107,6 +101,25 @@ jobs:
cargo build -p wasmer-runtime-c-api --release
displayName: Build c-api (Windows)
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
- bash: make release
displayName: Build (*nix)
condition: and(succeeded(), not(eq(variables['Agent.OS'], 'Windows_NT')))
- bash: make release-llvm
displayName: Build (Windows)
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
- bash: |
cargo build --release --manifest-path wapm-cli/Cargo.toml --features "telemetry update-notifications"
displayName: Build WAPM
- bash: |
mkdir -p artifacts
make build-install
displayName: Build Distribution (*nix)
condition: and(succeeded(), not(eq(variables['Agent.OS'], 'Windows_NT')))
- bash: |
cd ./src/installer
iscc wasmer.iss
displayName: Build Distribution (Windows)
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
- bash: |
install_name_tool -id "@rpath/libwasmer_runtime_c_api.dylib" target/release/libwasmer_runtime_c_api.dylib
displayName: Build c-api (Darwin fix)