-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1.19 KB
/
make.yml
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
name: Make WebAssembly
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
wasi_sdk_version: [19, 20]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Downloading wasi-sdk
run: |
cd ${{github.workspace}}
wget --no-verbose https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${{matrix.wasi_sdk_version}}/wasi-sdk-${{matrix.wasi_sdk_version}}.0-linux.tar.gz
tar xf wasi-sdk-${{matrix.wasi_sdk_version}}.0-linux.tar.gz
- name: Downloading binaryen
run: |
cd ${{github.workspace}}
wget --no-verbose https://github.com/WebAssembly/binaryen/releases/download/version_112/binaryen-version_112-x86_64-linux.tar.gz
tar xf binaryen-version_112-x86_64-linux.tar.gz
- name: make
run: make -j$(nproc) WASI_SDK="${{github.workspace}}/wasi-sdk-${{matrix.wasi_sdk_version}}.0/" WASM_OPT="${{github.workspace}}/binaryen-version_112/bin/wasm-opt"
- uses: actions/upload-artifact@v3
with:
name: build-${{matrix.wasi_sdk_version}}
path: ${{github.workspace}}/build