-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved Wasmer C API release artifacts #1233
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d93d878
Fixed runtime doc links
syrusakbary 40fb54c
Improved Wasmer C API artifacts
syrusakbary 0b50646
Ignore the capi folder
syrusakbary edeabd4
Add links for API Docs
syrusakbary 6d0efd2
Updated changelog
syrusakbary 8933f32
Merge branch 'master' into feature/release-capi
syrusakbary b31d8d7
Fixed windows library
syrusakbary f0abcb0
Fixing C api creation only for Linux
syrusakbary 1d9741b
Fixed make capi script in windows
syrusakbary aa0f332
Reuse doc file for capi docs
syrusakbary c8df4fb
Removed empty lines
syrusakbary 38830ed
Fixed unused cd
syrusakbary 69d88ce
Make commands more clear
syrusakbary File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,6 @@ | |
.idea | ||
**/.vscode | ||
install/ | ||
capi/ | ||
api-docs/ | ||
api-docs-repo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
name = "wasmer-runtime-c-api" | ||
version = "0.13.1" | ||
description = "Wasmer C API library" | ||
documentation = "https://wasmerio.github.io/wasmer/c/runtime-c-api/" | ||
license = "MIT" | ||
authors = ["The Wasmer Engineering Team <[email protected]>"] | ||
repository = "https://github.com/wasmerio/wasmer" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
name = "wasmer-runtime" | ||
version = "0.13.1" | ||
description = "Wasmer runtime library" | ||
documentation = "https://wasmerio.github.io/wasmer/c/runtime-c-api/" | ||
license = "MIT" | ||
authors = ["The Wasmer Engineering Team <[email protected]>"] | ||
repository = "https://github.com/wasmerio/wasmer" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/sh | ||
|
||
initArch() { | ||
ARCH=$(uname -m) | ||
if [ -n "$WASMER_ARCH" ]; then | ||
ARCH="$WASMER_ARCH" | ||
fi | ||
# If you modify this list, please also modify install.sh | ||
case $ARCH in | ||
amd64) ARCH="amd64";; | ||
x86_64) ARCH="amd64";; | ||
aarch64) ARCH="arm64";; | ||
i386) ARCH="386";; | ||
*) echo "Architecture ${ARCH} is not supported by this installation script"; exit 1;; | ||
esac | ||
} | ||
|
||
initOS() { | ||
OS=$(uname | tr '[:upper:]' '[:lower:]') | ||
if [ -n "$WASMER_OS" ]; then | ||
echo "Using WASMER_OS" | ||
OS="$WASMER_OS" | ||
fi | ||
case "$OS" in | ||
darwin) OS='darwin';; | ||
linux) OS='linux';; | ||
freebsd) OS='freebsd';; | ||
# mingw*) OS='windows';; | ||
# msys*) OS='windows';; | ||
*) echo "OS ${OS} is not supported by this installation script"; exit 1;; | ||
esac | ||
} | ||
|
||
# identify platform based on uname output | ||
initArch | ||
initOS | ||
|
||
# determine install directory if required | ||
BINARY="wasmer-c-api-${OS}-${ARCH}.tar.gz" | ||
|
||
# add .exe if on windows | ||
# if [ "$OS" = "windows" ]; then | ||
# BINARY="$BINARY.exe" | ||
# fi | ||
|
||
echo "${BINARY}" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a wrong doc link, intended to be the
runtime-c-api
not for theruntime
.We are fixing it in this PR :)