-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (37 loc) · 1.03 KB
/
build.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
40
41
42
43
44
45
name: Build sqlite artifact
on:
workflow_call:
inputs:
ref:
description: "git ref"
type: string
default: master
jobs:
build:
name: "Build sqlite.wasm"
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
repository: fluencelabs/sqlite
ref: ${{ inputs.ref }}
- name: Setup wasi-sdk
run: |
curl -L https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-15/wasi-sdk-15.0-linux.tar.gz | tar xz -C ./
mv wasi-sdk-* wasi-sdk
- name: Setup Rust toolchain
uses: dsherret/rust-toolchain-file@v1
- name: Setup marine
uses: fluencelabs/setup-marine@v1
with:
artifact-name: "marine"
- name: Build sqlite-wasm
run: make
- name: Upload sqlite-wasm
uses: actions/upload-artifact@v3
with:
name: sqlite-wasm
path: sqlite3.wasm
if-no-files-found: error