Create dynamic libraries for different platforms per release

This commit is contained in:
Syrus 2019-05-28 15:04:51 -07:00
parent b0d73917af
commit 5791583228
2 changed files with 11 additions and 0 deletions

View File

@ -64,6 +64,7 @@ build_script:
- rename target wapm-cli-target - rename target wapm-cli-target
- cd .. - cd ..
- move wapm-cli\wapm-cli-target wapm-cli-target - move wapm-cli\wapm-cli-target wapm-cli-target
- cargo build --release --manifest-path lib/runtime-c-api/Cargo.toml
test_script: test_script:
- cargo test --manifest-path lib/spectests/Cargo.toml --features clif - cargo test --manifest-path lib/spectests/Cargo.toml --features clif

View File

@ -191,6 +191,11 @@ jobs:
echo "${CIRCLE_TAG}" >> artifacts/git_version echo "${CIRCLE_TAG}" >> artifacts/git_version
make build-install make build-install
cp ./wasmer.tar.gz ./artifacts/$(./binary-name.sh) cp ./wasmer.tar.gz ./artifacts/$(./binary-name.sh)
- run:
name: Dynamic library
command: |
cargo build --release --manifest-path lib/runtime-c-api/Cargo.toml
cp target/release/libwasmer_runtime_c_api.so ./artifacts
- persist_to_workspace: - persist_to_workspace:
root: . root: .
paths: paths:
@ -278,6 +283,11 @@ jobs:
cp ./wasmer.tar.gz ./artifacts/$(./binary-name.sh) cp ./wasmer.tar.gz ./artifacts/$(./binary-name.sh)
# VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2) # VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2)
# echo "${VERSION}" >> artifacts/version # echo "${VERSION}" >> artifacts/version
- run:
name: Dynamic library
command: |
cargo build --release --manifest-path lib/runtime-c-api/Cargo.toml
cp target/release/libwasmer_runtime_c_api.dylib ./artifacts
- persist_to_workspace: - persist_to_workspace:
root: . root: .
paths: paths: