-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathbinaryen.yaml
72 lines (63 loc) · 1.51 KB
/
binaryen.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package:
name: binaryen
version: "117"
epoch: 0
description: Optimizer and compiler/toolchain library for WebAssembly
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
- cmake
- samurai
pipeline:
- uses: git-checkout
with:
repository: https://github.com/webassembly/binaryen
tag: version_${{package.version}}
expected-commit: c62a0c97168e88f97bca4bd96298a5ffc041844d
- uses: cmake/configure
with:
opts: |
-DBUILD_TESTS=OFF \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_STANDARD=20
- uses: cmake/build
- uses: cmake/install
- uses: strip
subpackages:
- name: binaryen-dev
pipeline:
- uses: split/dev
description: binaryen dev
update:
enabled: true
github:
identifier: webassembly/binaryen
strip-prefix: version_
test:
pipeline:
- runs: |
cat > hello_world.wat <<'EOF'
(module
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
(memory $0 256 256)
(export "add" (func $add))
(func $add (param $x i32) (param $y i32) (result i32)
(i32.add
(local.get $x)
(local.get $y)
)
)
)
EOF
/usr/bin/wasm2js hello_world.wat -o hello_world.js
cat hello_world.js