Mirai's Miscellaneous Misadventures

M50 / meta / build.yml

1# license: AGPLv3 or later
2# copyright 2024 zamfofex
3
4image: alpine/latest
5packages:
6- wasi-sdk
7- clang
8- lld
9- llvm
10- samurai
11- binaryen
12- zip
13- python3
14tasks:
15- fetch: |
16    wget -O- https://zamfofex.neocities.org/mimimi/mimimi-M50.tar | tar x
17- meson: |
18    git clone https://github.com/mesonbuild/meson
19    cd meson
20    git fetch origin pull/11862/head:pull-11862
21    git checkout pull-11862
22    git apply ../mimimi/meta/meson.diff || true
23- build: |
24    cd mimimi
25    ../meson/meson.py setup --cross-file=meta/wasm32.txt --buildtype=release --prefix="$PWD/output" build
26    ninja -C build install
27    tar -C output/share -chvf mimimi.tar mimimi
28    zip -r mimimi.zip output/share/mimimi
29artifacts:
30- mimimi/mimimi.tar
31- mimimi/mimimi.zip