matrix:
include:
- build: linux-amd64
- os: ubuntu-20.04
+ os: ubuntu-latest
runtime_library: ovmwasm
artifact_name: 'onyx-linux-ovm-amd64'
- build: linux-amd64
- os: ubuntu-20.04
+ os: ubuntu-latest
runtime_library: ':libwasmer.a'
artifact_name: 'onyx-linux-wasmer-amd64'
- build: windows-amd64
cp ./scripts/onyx-pkg.onyx "$DIST_DIR/tools"
cp ./scripts/default.json "$DIST_DIR/tools/pkg_templates"
- echo "Installing runtime library '$ONYX_RUNTIME_LIBRARY'"
+ echo "Installing runtime library"
mkdir -p "$DIST_DIR/lib"
mkdir -p "$DIST_DIR/include"
cp -r "tests" "$DIST_DIR/"
cp -r "examples" "$DIST_DIR/"
+
+ mkdir -p "$DIST_DIR/misc"
+ cp misc/onyx-linux.sublime-build "$DIST_DIR/misc"
+ cp misc/onyx-windows.sublime-build "$DIST_DIR/misc"
+ cp misc/onyx-mode.el "$DIST_DIR/misc"
+ cp misc/onyx.sublime-syntax "$DIST_DIR/misc"
+ cp misc/vscode/onyx-0.1.8.vsix "$DIST_DIR/misc"
}
install_all() {
package_all
+ echo "Installing to $ONYX_INSTALL_DIR"
mkdir -p "$ONYX_INSTALL_DIR"
cp -r "$DIST_DIR/." "$ONYX_INSTALL_DIR"
}
#!/bin/sh
-C_FILES="onyx astnodes builtins checker clone doc entities errors lex parser symres types utils wasm_emit"
+C_FILES="onyx astnodes builtins checker clone doc entities errors lex parser symres types utils wasm_emit "
LIBS="-L$ONYX_LIBRARY_DIR -lpthread -ldl -lm"
INCLUDES="-I./include -I../shared/include -I../shared/include/dyncall"
if [ ! -z ${ONYX_RUNTIME_LIBRARY+x} ]; then
FLAGS="$FLAGS -DENABLE_RUN_WITH_WASMER"
- C_FILES="$C_FILES wasm_runtime "
+ C_FILES="${C_FILES}wasm_runtime "
LIBS="$LIBS -l$ONYX_RUNTIME_LIBRARY"
fi
export ONYX_INCLUDE_DIR="$(pwd)/shared/include"
export ONYX_LIBRARY_DIR="$(pwd)/shared/lib/linux_$ONYX_ARCH/lib"
+# export ONYX_LIBRARY_DIR="$(wasmer config --libdir)"
# Enable Dynamic call
export ONYX_USE_DYNCALL=1