File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 14
14
# limitations under the License.
15
15
#
16
16
set -euo pipefail -x
17
+ arch=$( uname -m | tr ' [:upper:]' ' [:lower:]' )
17
18
19
+ ARCH=$arch
18
20
VER=v0.35.1
19
- wget https://github.com/bytecodealliance/wasmtime/releases/download/${VER} /wasmtime-${VER} -x86_64 -linux-c-api.tar.xz
20
- tar -xvf ./wasmtime-${VER} -x86_64 -linux-c-api.tar.xz > /dev/null
21
+ wget https://github.com/bytecodealliance/wasmtime/releases/download/${VER} /wasmtime-${VER} -${ARCH} -linux-c-api.tar.xz
22
+ tar -xvf ./wasmtime-${VER} -${ARCH} -linux-c-api.tar.xz > /dev/null
21
23
if [ -d wasmtime-c-api ]; then
22
24
rm -rf wasmtime-c-api
23
25
fi
24
- mv wasmtime-${VER} -x86_64 -linux-c-api wasmtime-c-api
26
+ mv wasmtime-${VER} -${ARCH} -linux-c-api wasmtime-c-api
25
27
if echo " int main(void) {}" | gcc -o /dev/null -v -x c - & > /dev/stdout| grep collect | tr -s " " " \012" | grep musl; then
26
28
# build from source code if the libc is musl
27
29
git clone https://github.com/bytecodealliance/wasmtime -b ${VER} --depth 1 \
You can’t perform that action at this time.
0 commit comments