mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Merge branch 'master' into feature/remove-call-protected
This commit is contained in:
commit
e8d5f01276
@ -175,7 +175,8 @@ jobs:
|
|||||||
# GIT_VERSION=$(git describe --exact-match --tags)
|
# GIT_VERSION=$(git describe --exact-match --tags)
|
||||||
echo "${VERSION}" >> artifacts/version
|
echo "${VERSION}" >> artifacts/version
|
||||||
echo "${CIRCLE_TAG}" >> artifacts/git_version
|
echo "${CIRCLE_TAG}" >> artifacts/git_version
|
||||||
cp ./target/release/wasmer ./artifacts/$(./binary-name.sh)
|
make build-install
|
||||||
|
cp ./wasmer.tar.gz ./artifacts/$(./binary-name.sh)
|
||||||
- run:
|
- run:
|
||||||
name: Debug flag checked
|
name: Debug flag checked
|
||||||
command: |
|
command: |
|
||||||
@ -217,11 +218,15 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Install Rust
|
name: Install Rust
|
||||||
command: |
|
command: |
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly-2019-04-11
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
cargo --version
|
cargo --version
|
||||||
# Use rust nightly (for singlepass, for now)
|
# Use rust nightly (for singlepass, for now)
|
||||||
- run: rustup default nightly-2019-04-11
|
# - run:
|
||||||
|
# name: Install Rust nightly
|
||||||
|
# command: |
|
||||||
|
# export PATH="$HOME/.rustup/bin:$PATH"
|
||||||
|
# rustup default nightly-2019-04-11
|
||||||
- run:
|
- run:
|
||||||
name: Tests
|
name: Tests
|
||||||
command: |
|
command: |
|
||||||
@ -251,9 +256,10 @@ jobs:
|
|||||||
export LLVM_SYS_70_PREFIX="`pwd`/clang+llvm-7.0.0-x86_64-apple-darwin/"
|
export LLVM_SYS_70_PREFIX="`pwd`/clang+llvm-7.0.0-x86_64-apple-darwin/"
|
||||||
make production-release
|
make production-release
|
||||||
mkdir -p artifacts
|
mkdir -p artifacts
|
||||||
|
make build-install
|
||||||
|
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
|
||||||
cp ./target/release/wasmer ./artifacts/$(./binary-name.sh)
|
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
paths:
|
paths:
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
.idea
|
.idea
|
||||||
**/.vscode
|
**/.vscode
|
||||||
|
install/
|
||||||
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2222,7 +2222,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "wasmer"
|
name = "wasmer"
|
||||||
version = "0.2.1"
|
version = "0.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"errno 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"errno 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "wasmer"
|
name = "wasmer"
|
||||||
version = "0.2.1"
|
version = "0.3.0"
|
||||||
authors = ["The Wasmer Engineering Team <engineering@wasmer.io>"]
|
authors = ["The Wasmer Engineering Team <engineering@wasmer.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
repository = "https://github.com/wasmerio/wasmer"
|
repository = "https://github.com/wasmerio/wasmer"
|
||||||
|
9
Makefile
9
Makefile
@ -32,6 +32,15 @@ lint:
|
|||||||
|
|
||||||
precommit: lint test
|
precommit: lint test
|
||||||
|
|
||||||
|
build-install:
|
||||||
|
mkdir -p ./install/bin
|
||||||
|
cp ./target/release/wasmer ./install/bin/
|
||||||
|
tar -C ./install -zcvf wasmer.tar.gz bin/wasmer
|
||||||
|
|
||||||
|
# For installing the contents locally
|
||||||
|
do-install:
|
||||||
|
tar -C ~/.wasmer -zxvf wasmer.tar.gz
|
||||||
|
|
||||||
test:
|
test:
|
||||||
# We use one thread so the emscripten stdouts doesn't collide
|
# We use one thread so the emscripten stdouts doesn't collide
|
||||||
cargo test --all --exclude wasmer-runtime-c-api --exclude wasmer-emscripten --exclude wasmer-spectests --exclude wasmer-singlepass-backend -- $(runargs)
|
cargo test --all --exclude wasmer-runtime-c-api --exclude wasmer-emscripten --exclude wasmer-spectests --exclude wasmer-singlepass-backend -- $(runargs)
|
||||||
|
@ -23,8 +23,8 @@ initOS() {
|
|||||||
darwin) OS='darwin';;
|
darwin) OS='darwin';;
|
||||||
linux) OS='linux';;
|
linux) OS='linux';;
|
||||||
freebsd) OS='freebsd';;
|
freebsd) OS='freebsd';;
|
||||||
mingw*) OS='windows';;
|
# mingw*) OS='windows';;
|
||||||
msys*) OS='windows';;
|
# msys*) OS='windows';;
|
||||||
*) echo "OS ${OS} is not supported by this installation script"; exit 1;;
|
*) echo "OS ${OS} is not supported by this installation script"; exit 1;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@ -34,11 +34,11 @@ initArch
|
|||||||
initOS
|
initOS
|
||||||
|
|
||||||
# determine install directory if required
|
# determine install directory if required
|
||||||
BINARY="wasmer-${OS}-${ARCH}"
|
BINARY="wasmer-${OS}-${ARCH}.tar.gz"
|
||||||
|
|
||||||
# add .exe if on windows
|
# add .exe if on windows
|
||||||
if [ "$OS" = "windows" ]; then
|
# if [ "$OS" = "windows" ]; then
|
||||||
BINARY="$BINARY.exe"
|
# BINARY="$BINARY.exe"
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
echo "${BINARY}"
|
echo "${BINARY}"
|
||||||
|
17
install.sh
17
install.sh
@ -32,6 +32,7 @@ white="\033[37m"
|
|||||||
bold="\e[1m"
|
bold="\e[1m"
|
||||||
dim="\e[2m"
|
dim="\e[2m"
|
||||||
|
|
||||||
|
# Warning: Remove this on the public repo
|
||||||
RELEASES_URL="https://github.com/wasmerio/wasmer/releases"
|
RELEASES_URL="https://github.com/wasmerio/wasmer/releases"
|
||||||
|
|
||||||
wasmer_download_json() {
|
wasmer_download_json() {
|
||||||
@ -369,12 +370,12 @@ wasmer_download() {
|
|||||||
WASMER=INSTALL_DIRECTORY
|
WASMER=INSTALL_DIRECTORY
|
||||||
|
|
||||||
# assemble expected release artifact name
|
# assemble expected release artifact name
|
||||||
BINARY="wasmer-${OS}-${ARCH}"
|
BINARY="wasmer-${OS}-${ARCH}.tar.gz"
|
||||||
|
|
||||||
# add .exe if on windows
|
# add .exe if on windows
|
||||||
if [ "$OS" = "windows" ]; then
|
# if [ "$OS" = "windows" ]; then
|
||||||
BINARY="$BINARY.exe"
|
# BINARY="$BINARY.exe"
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
# if WASMER_RELEASE_TAG was not provided, assume latest
|
# if WASMER_RELEASE_TAG was not provided, assume latest
|
||||||
if [ -z "$WASMER_RELEASE_TAG" ]; then
|
if [ -z "$WASMER_RELEASE_TAG" ]; then
|
||||||
@ -417,9 +418,6 @@ wasmer_download() {
|
|||||||
printf "\033[K\n\033[1A"
|
printf "\033[K\n\033[1A"
|
||||||
# printf "\033[1A$cyan> Downloaded$reset\033[K\n"
|
# printf "\033[1A$cyan> Downloaded$reset\033[K\n"
|
||||||
# echo "Setting executable permissions."
|
# echo "Setting executable permissions."
|
||||||
chmod +x "$DOWNLOAD_FILE"
|
|
||||||
|
|
||||||
INSTALL_NAME="wasmer"
|
|
||||||
|
|
||||||
# windows not supported yet
|
# windows not supported yet
|
||||||
# if [ "$OS" = "windows" ]; then
|
# if [ "$OS" = "windows" ]; then
|
||||||
@ -428,8 +426,9 @@ wasmer_download() {
|
|||||||
|
|
||||||
# echo "Moving executable to $INSTALL_DIRECTORY/$INSTALL_NAME"
|
# echo "Moving executable to $INSTALL_DIRECTORY/$INSTALL_NAME"
|
||||||
|
|
||||||
mkdir -p $INSTALL_DIRECTORY/bin
|
mkdir -p $INSTALL_DIRECTORY
|
||||||
mv "$DOWNLOAD_FILE" "$INSTALL_DIRECTORY/bin/$INSTALL_NAME"
|
# Untar the wasmer contents in the install directory
|
||||||
|
tar -C $INSTALL_DIRECTORY -zxvf $DOWNLOAD_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
wasmer_verify_or_quit() {
|
wasmer_verify_or_quit() {
|
||||||
|
Loading…
Reference in New Issue
Block a user