Moved build wapm into Makefile

This commit is contained in:
Syrus 2020-02-28 11:11:31 -08:00
parent 85a3bb7148
commit 80f7e98651
3 changed files with 9 additions and 5 deletions

View File

@ -28,7 +28,9 @@ script:
before_deploy: before_deploy:
# Release # Release
- make release-singlepass - make release-singlepass
- make wapm # Build WAPM
- make build-wapm
# Make package
- make build-install-package - make build-install-package
- mkdir -p artifacts - mkdir -p artifacts
- cp ./wasmer.tar.gz ./artifacts/$(./scripts/binary-name.sh) - cp ./wasmer.tar.gz ./artifacts/$(./scripts/binary-name.sh)

View File

@ -315,6 +315,11 @@ endif
cp lib/runtime-c-api/doc/index.md ./capi/README.md cp lib/runtime-c-api/doc/index.md ./capi/README.md
tar -C ./capi -zcvf wasmer-c-api.tar.gz lib include README.md LICENSE tar -C ./capi -zcvf wasmer-c-api.tar.gz lib include README.md LICENSE
WAPM_VERSION = 0.4.3
build-wapm:
git clone --branch $(WAPM_VERSION) https://github.com/wasmerio/wapm-cli.git
cargo build --release --manifest-path wapm-cli/Cargo.toml --features "telemetry update-notifications"
# For installing the contents locally # For installing the contents locally
do-install: do-install:
tar -C ~/.wasmer -zxvf wasmer.tar.gz tar -C ~/.wasmer -zxvf wasmer.tar.gz

View File

@ -143,13 +143,10 @@ jobs:
displayName: Build (Windows) displayName: Build (Windows)
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT')) condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
- bash: | - bash: |
git clone --branch $WAPM_VERSION https://github.com/wasmerio/wapm-cli.git make build-wapm
cargo build --release --manifest-path wapm-cli/Cargo.toml --features "telemetry update-notifications"
displayName: Build WAPM displayName: Build WAPM
condition: | condition: |
startsWith(variables['Build.SourceBranch'], 'refs/tags') startsWith(variables['Build.SourceBranch'], 'refs/tags')
env:
WAPM_VERSION: 0.4.3
- bash: | - bash: |
make build-install-package make build-install-package
cp ./wasmer.tar.gz ./artifacts/$(./scripts/binary-name.sh) cp ./wasmer.tar.gz ./artifacts/$(./scripts/binary-name.sh)