forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinaryen.yaml
106 lines (96 loc) · 2.41 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package:
name: binaryen
version: "119"
epoch: 0
description: Optimizer and compiler/toolchain library for WebAssembly
copyright:
- license: Apache-2.0
resources:
cpu: 10
memory: 10Gi
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: 5fca52781efe63c1683c436cb0c5e08cc4a87b9e
- uses: patch
with:
patches: gcc-14-Wmaybe-uninitialized.patch
- 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 \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
- 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
wasm-as --version
wasm-as --help
wasm-ctor-eval --version
wasm-ctor-eval --help
wasm-dis --version
wasm-dis --help
wasm-emscripten-finalize --version
wasm-emscripten-finalize --help
wasm-fuzz-lattices --version
wasm-fuzz-lattices --help
wasm-fuzz-types --version
wasm-fuzz-types --help
wasm-merge --version
wasm-merge --help
wasm-metadce --version
wasm-metadce --help
wasm-opt --version
wasm-opt --help
wasm-reduce --version
wasm-reduce --help
wasm-shell --version
wasm-shell --help
wasm-split --version
wasm-split --help
wasm2js --version
wasm2js --help